#151E7E#151E7E

#151E7E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.158 H 269.2°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#151E7E
RGBrgb(21, 30, 126)
HSLhsl(235, 71%, 29%)
HSVhsv(235, 83%, 49%)
CMYKcmyk(83.3%, 76.2%, 0%, 50.6%)
CIE-LABlab(18.34, 33.38, -54.48)
CIE-LCHlch(18.34, 63.89, 301.50°)
OKLaboklab(30.99% -0.0022 -0.1578)
OKLCHoklch(30.99% 0.158 269.2)
XYZxyz(4.5381, 2.5938, 19.9961)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E7E #7E7515
analogous
#15537E #151E7E #41157E
triadic
#151E7E #7E151E #1E7E15
tetradic
#151E7E #7E1553 #7E7515 #157E41
square
#151E7E #7E1553 #7E7515 #157E41
split-complementary
#151E7E #7E4115 #537E15
monochromatic
#04061A #0C124A #151E7E #1E2AB2 #3140DD

Accessibility & contrast

On white

13.83
#151E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#151E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151E7E
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E7E#FFFFFF#000000##FFFFFF
##151E7E1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151e7e;
/* rgb */ color: rgb(21, 30, 126);
/* oklch */ color: oklch(31.0% 0.158 269.2);
Tailwind
colors: {
  custom: {
    50: '#685ba4',
    500: '#151e7e',
    950: '#000000',
  },
}
SCSS
$custom: #151e7e;
$custom-light: #685ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#151e7e",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 234.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3099,
    "c": 0.15786,
    "h": 269.2
  },
  "luminance": 0.02594
}

Semantic roles & 50–950 ramp

primary
#151E7E
secondary
#B3A93C
accent
#DF3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #151E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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