#151F7F#151F7F

#151F7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.158 H 269.0°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#151F7F
RGBrgb(21, 31, 127)
HSLhsl(234, 72%, 29%)
HSVhsv(234, 83%, 50%)
CMYKcmyk(83.5%, 75.6%, 0%, 50.2%)
CIE-LABlab(18.68, 33.13, -54.56)
CIE-LCHlch(18.68, 63.82, 301.27°)
OKLaboklab(31.26% -0.0027 -0.1581)
OKLCHoklch(31.26% 0.158 269)
XYZxyz(4.6287, 2.6712, 20.3462)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F7F #7F7515
analogous
#15547F #151F7F #40157F
triadic
#151F7F #7F151F #1F7F15
tetradic
#151F7F #7F1554 #7F7515 #157F40
square
#151F7F #7F1554 #7F7515 #157F40
split-complementary
#151F7F #7F4015 #547F15
monochromatic
#04061A #0C124A #151F7F #1E2CB4 #3142DD

Accessibility & contrast

On white

13.69
#151F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#151F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F7F
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F7F#FFFFFF#000000##FFFFFF
##151F7F1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #151f7f;
/* rgb */ color: rgb(21, 31, 127);
/* oklch */ color: oklch(31.3% 0.158 269.0);
Tailwind
colors: {
  custom: {
    50: '#685ba5',
    500: '#151f7f',
    950: '#000000',
  },
}
SCSS
$custom: #151f7f;
$custom-light: #685ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#151f7f",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 234.34,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31265,
    "c": 0.15809,
    "h": 269
  },
  "luminance": 0.02672
}

Semantic roles & 50–950 ramp

primary
#151F7F
secondary
#B4A93C
accent
#DD39EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #151F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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