#151F45#151F45

#151F45 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.072 H 269.6°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#151F45
RGBrgb(21, 31, 69)
HSLhsl(228, 53%, 18%)
HSVhsv(228, 70%, 27%)
CMYKcmyk(69.6%, 55.1%, 0%, 72.9%)
CIE-LABlab(13.04, 9.88, -25.33)
CIE-LCHlch(13.04, 27.19, 291.32°)
OKLaboklab(25.4% -0.0006 -0.0725)
OKLCHoklch(25.4% 0.072 269.6)
XYZxyz(1.8731, 1.5689, 5.8332)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F45 #453B15
analogous
#153745 #151F45 #231545
triadic
#151F45 #45151F #1F4515
tetradic
#151F45 #451537 #453B15 #154523
square
#151F45 #451537 #453B15 #154523
split-complementary
#151F45 #452315 #374515
monochromatic
#070B17 #070B17 #151F45 #233474 #3249A3

Accessibility & contrast

On white

15.98
#151F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#151F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F45
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F45#FFFFFF#000000##FFFFFF
##151F451.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2446
Deuteranopia (green-blind)
#032044
Tritanopia (blue-blind)
#00282E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #151f45;
/* rgb */ color: rgb(21, 31, 69);
/* oklch */ color: oklch(25.4% 0.072 269.6);
Tailwind
colors: {
  custom: {
    50: '#585a79',
    500: '#151f45',
    950: '#000000',
  },
}
SCSS
$custom: #151f45;
$custom-light: #585a79;
$custom-dark: #000000;
JSON
{
  "hex": "#151f45",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 69
  },
  "hsl": {
    "h": 227.5,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25398,
    "c": 0.07248,
    "h": 269.6
  },
  "luminance": 0.01569
}

Semantic roles & 50–950 ramp

primary
#151F45
secondary
#7D6F39
accent
#BE4BDD
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #151F45

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

Preview Lab → · Contrast checker → · Palette generator →

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