#151F49#151F49

#151F49 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.079 H 269.9°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#151F49
RGBrgb(21, 31, 73)
HSLhsl(228, 55%, 18%)
HSVhsv(228, 71%, 29%)
CMYKcmyk(71.2%, 57.5%, 0%, 71.4%)
CIE-LABlab(13.35, 11.55, -27.59)
CIE-LCHlch(13.35, 29.91, 292.71°)
OKLaboklab(25.74% -0.0001 -0.0791)
OKLCHoklch(25.74% 0.079 269.9)
XYZxyz(2.0014, 1.6203, 6.5093)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F49 #493F15
analogous
#153949 #151F49 #251549
triadic
#151F49 #49151F #1F4915
tetradic
#151F49 #491539 #493F15 #154925
square
#151F49 #491539 #493F15 #154925
split-complementary
#151F49 #492515 #394915
monochromatic
#070A18 #070B19 #151F49 #233379 #3047A8

Accessibility & contrast

On white

15.86
#151F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#151F49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F49
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F49#FFFFFF#000000##FFFFFF
##151F491.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06254A
Deuteranopia (green-blind)
#002048
Tritanopia (blue-blind)
#002930
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #151f49;
/* rgb */ color: rgb(21, 31, 73);
/* oklch */ color: oklch(25.7% 0.079 269.9);
Tailwind
colors: {
  custom: {
    50: '#595a7c',
    500: '#151f49',
    950: '#000000',
  },
}
SCSS
$custom: #151f49;
$custom-light: #595a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#151f49",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 73
  },
  "hsl": {
    "h": 228.462,
    "s": 55.319,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25736,
    "c": 0.07915,
    "h": 269.9
  },
  "luminance": 0.0162
}

Semantic roles & 50–950 ramp

primary
#151F49
secondary
#817339
accent
#C249DF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #151F49

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

Preview Lab → · Contrast checker → · Palette generator →

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