#151F6C#151F6C

#151F6C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.132 H 269.8°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#151F6C
RGBrgb(21, 31, 108)
HSLhsl(233, 67%, 25%)
HSVhsv(233, 81%, 42%)
CMYKcmyk(80.6%, 71.3%, 0%, 57.6%)
CIE-LABlab(16.61, 25.87, -45.74)
CIE-LCHlch(16.61, 52.55, 299.49°)
OKLaboklab(29.16% -0.0005 -0.1324)
OKLCHoklch(29.16% 0.132 269.8)
XYZxyz(3.5051, 2.2217, 14.4286)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F6C #6C6215
analogous
#154B6C #151F6C #36156C
triadic
#151F6C #6C151F #1F6C15
tetradic
#151F6C #6C154B #6C6215 #156C36
square
#151F6C #6C154B #6C6215 #156C36
split-complementary
#151F6C #6C3615 #4B6C15
monochromatic
#05071A #0B1039 #151F6C #1F2E9F #293CD2

Accessibility & contrast

On white

14.54
#151F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#151F6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F6C
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F6C#FFFFFF#000000##FFFFFF
##151F6C1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#00256B
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #151f6c;
/* rgb */ color: rgb(21, 31, 108);
/* oklch */ color: oklch(29.2% 0.132 269.8);
Tailwind
colors: {
  custom: {
    50: '#635a97',
    500: '#151f6c',
    950: '#000000',
  },
}
SCSS
$custom: #151f6c;
$custom-light: #635a97;
$custom-dark: #000000;
JSON
{
  "hex": "#151f6c",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 108
  },
  "hsl": {
    "h": 233.103,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29158,
    "c": 0.13239,
    "h": 269.8
  },
  "luminance": 0.02222
}

Semantic roles & 50–950 ramp

primary
#151F6C
secondary
#A3973A
accent
#D63DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #151F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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