#151A4F#151A4F

#151A4F is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.096 H 273.2°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#151A4F
RGBrgb(21, 26, 79)
HSLhsl(235, 58%, 20%)
HSVhsv(235, 73%, 31%)
CMYKcmyk(73.4%, 67.1%, 0%, 69%)
CIE-LABlab(12.37, 17.79, -33.32)
CIE-LCHlch(12.37, 37.77, 298.10°)
OKLaboklab(25.17% 0.0053 -0.0961)
OKLCHoklch(25.17% 0.096 273.2)
XYZxyz(2.0895, 1.4625, 7.5678)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A4F #4F4A15
analogous
#15374F #151A4F #2D154F
triadic
#151A4F #4F151A #1A4F15
tetradic
#151A4F #4F1537 #4F4A15 #154F2D
square
#151A4F #4F1537 #4F4A15 #154F2D
split-complementary
#151A4F #4F2D15 #374F15
monochromatic
#060818 #080A1F #151A4F #222A7F #2F3AB0

Accessibility & contrast

On white

16.25
#151A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#151A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A4F
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A4F#FFFFFF#000000##FFFFFF
##151A4F1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#002731
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #151a4f;
/* rgb */ color: rgb(21, 26, 79);
/* oklch */ color: oklch(25.2% 0.096 273.2);
Tailwind
colors: {
  custom: {
    50: '#5b5681',
    500: '#151a4f',
    950: '#000000',
  },
}
SCSS
$custom: #151a4f;
$custom-light: #5b5681;
$custom-dark: #000000;
JSON
{
  "hex": "#151a4f",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 234.828,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25165,
    "c": 0.09621,
    "h": 273.2
  },
  "luminance": 0.01463
}

Semantic roles & 50–950 ramp

primary
#151A4F
secondary
#878039
accent
#D447E1
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #151A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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