#151F6A#151F6A

#151F6A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 28.9% C 0.130 H 269.9°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#151F6A
RGBrgb(21, 31, 106)
HSLhsl(233, 67%, 25%)
HSVhsv(233, 80%, 42%)
CMYKcmyk(80.2%, 70.8%, 0%, 58.4%)
CIE-LABlab(16.40, 25.08, -44.78)
CIE-LCHlch(16.40, 51.32, 299.25°)
OKLaboklab(28.94% -0.0003 -0.1296)
OKLCHoklch(28.94% 0.13 269.9)
XYZxyz(3.3999, 2.1796, 13.8744)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F6A #6A6015
analogous
#154A6A #151F6A #35156A
triadic
#151F6A #6A151F #1F6A15
tetradic
#151F6A #6A154A #6A6015 #156A35
square
#151F6A #6A154A #6A6015 #156A35
split-complementary
#151F6A #6A3515 #4A6A15
monochromatic
#05071A #0B1037 #151F6A #1F2E9D #293DD0

Accessibility & contrast

On white

14.62
#151F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F6A
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F6A#FFFFFF#000000##FFFFFF
##151F6A1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#003341
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #151f6a;
/* rgb */ color: rgb(21, 31, 106);
/* oklch */ color: oklch(28.9% 0.130 269.9);
Tailwind
colors: {
  custom: {
    50: '#625a95',
    500: '#151f6a',
    950: '#000000',
  },
}
SCSS
$custom: #151f6a;
$custom-light: #625a95;
$custom-dark: #000000;
JSON
{
  "hex": "#151f6a",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 232.941,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28944,
    "c": 0.12957,
    "h": 269.9
  },
  "luminance": 0.0218
}

Semantic roles & 50–950 ramp

primary
#151F6A
secondary
#A1953A
accent
#D63EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #151F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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