#151F64#151F64

#151F64 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.3% C 0.121 H 270.1°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#151F64
RGBrgb(21, 31, 100)
HSLhsl(232, 65%, 24%)
HSVhsv(232, 79%, 39%)
CMYKcmyk(79%, 69%, 0%, 60.8%)
CIE-LABlab(15.79, 22.68, -41.83)
CIE-LCHlch(15.79, 47.59, 298.47°)
OKLaboklab(28.31% 0.0002 -0.121)
OKLCHoklch(28.31% 0.121 270.1)
XYZxyz(3.0987, 2.0592, 12.2883)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F64 #645A15
analogous
#154664 #151F64 #321564
triadic
#151F64 #64151F #1F6415
tetradic
#151F64 #641546 #645A15 #156432
square
#151F64 #641546 #645A15 #156432
split-complementary
#151F64 #643215 #466415
monochromatic
#050819 #0A0F31 #151F64 #202F97 #2A3EC9

Accessibility & contrast

On white

14.87
#151F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#151F64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F64
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F64#FFFFFF#000000##FFFFFF
##151F641.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151f64;
/* rgb */ color: rgb(21, 31, 100);
/* oklch */ color: oklch(28.3% 0.121 270.1);
Tailwind
colors: {
  custom: {
    50: '#605a91',
    500: '#151f64',
    950: '#000000',
  },
}
SCSS
$custom: #151f64;
$custom-light: #605a91;
$custom-dark: #000000;
JSON
{
  "hex": "#151f64",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 100
  },
  "hsl": {
    "h": 232.405,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28314,
    "c": 0.12096,
    "h": 270.1
  },
  "luminance": 0.0206
}

Semantic roles & 50–950 ramp

primary
#151F64
secondary
#9B8F3A
accent
#D340E8
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#05040D
muted
#79797E

Preview Lab

Preview with #151F64

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#151F64 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva