#151E7B#151E7B

#151E7B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.154 H 269.3°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#151E7B
RGBrgb(21, 30, 123)
HSLhsl(235, 71%, 28%)
HSVhsv(235, 83%, 48%)
CMYKcmyk(82.9%, 75.6%, 0%, 51.8%)
CIE-LABlab(18.00, 32.27, -53.13)
CIE-LCHlch(18.00, 62.16, 301.28°)
OKLaboklab(30.65% -0.0018 -0.1539)
OKLCHoklch(30.65% 0.154 269.3)
XYZxyz(4.3475, 2.5175, 18.9919)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E7B #7B7215
analogous
#15517B #151E7B #3F157B
triadic
#151E7B #7B151E #1E7B15
tetradic
#151E7B #7B1551 #7B7215 #157B3F
square
#151E7B #7B1551 #7B7215 #157B3F
split-complementary
#151E7B #7B3F15 #517B15
monochromatic
#04061A #0C1147 #151E7B #1E2BAF #2F3EDB

Accessibility & contrast

On white

13.97
#151E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#151E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151E7B
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E7B#FFFFFF#000000##FFFFFF
##151E7B1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #151e7b;
/* rgb */ color: rgb(21, 30, 123);
/* oklch */ color: oklch(30.6% 0.154 269.3);
Tailwind
colors: {
  custom: {
    50: '#675aa2',
    500: '#151e7b',
    950: '#000000',
  },
}
SCSS
$custom: #151e7b;
$custom-light: #675aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#151e7b",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 234.706,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30646,
    "c": 0.15393,
    "h": 269.3
  },
  "luminance": 0.02518
}

Semantic roles & 50–950 ramp

primary
#151E7B
secondary
#B0A63B
accent
#DE3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #151E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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