#151F7E#151F7E

#151F7E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.157 H 269.0°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#151F7E
RGBrgb(21, 31, 126)
HSLhsl(234, 71%, 29%)
HSVhsv(234, 83%, 49%)
CMYKcmyk(83.3%, 75.4%, 0%, 50.6%)
CIE-LABlab(18.56, 32.75, -54.11)
CIE-LCHlch(18.56, 63.25, 301.19°)
OKLaboklab(31.15% -0.0026 -0.1568)
OKLCHoklch(31.15% 0.157 269)
XYZxyz(4.5638, 2.6452, 20.0047)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F7E #7E7415
analogous
#15547E #151F7E #40157E
triadic
#151F7E #7E151F #1F7E15
tetradic
#151F7E #7E1554 #7E7415 #157E40
square
#151F7E #7E1554 #7E7415 #157E40
split-complementary
#151F7E #7E4015 #547E15
monochromatic
#04061A #0C124A #151F7E #1E2CB2 #3141DD

Accessibility & contrast

On white

13.73
#151F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F7E
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F7E#FFFFFF#000000##FFFFFF
##151F7E1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #151f7e;
/* rgb */ color: rgb(21, 31, 126);
/* oklch */ color: oklch(31.2% 0.157 269.0);
Tailwind
colors: {
  custom: {
    50: '#685ba4',
    500: '#151f7e',
    950: '#000000',
  },
}
SCSS
$custom: #151f7e;
$custom-light: #685ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#151f7e",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 234.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31151,
    "c": 0.15679,
    "h": 269
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#151F7E
secondary
#B3A83C
accent
#DD3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #151F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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