#151F46#151F46

#151F46 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.5% C 0.074 H 269.7°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#151F46
RGBrgb(21, 31, 70)
HSLhsl(228, 54%, 18%)
HSVhsv(228, 70%, 27%)
CMYKcmyk(70%, 55.7%, 0%, 72.5%)
CIE-LABlab(13.12, 10.30, -25.90)
CIE-LCHlch(13.12, 27.87, 291.69°)
OKLaboklab(25.48% -0.0004 -0.0742)
OKLCHoklch(25.48% 0.074 269.7)
XYZxyz(1.9044, 1.5814, 5.9981)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F46 #463C15
analogous
#153746 #151F46 #231546
triadic
#151F46 #46151F #1F4615
tetradic
#151F46 #461537 #463C15 #154623
square
#151F46 #461537 #463C15 #154623
split-complementary
#151F46 #462315 #374615
monochromatic
#070A18 #070A18 #151F46 #233475 #3149A4

Accessibility & contrast

On white

15.95
#151F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F46
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F46#FFFFFF#000000##FFFFFF
##151F461.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2447
Deuteranopia (green-blind)
#022045
Tritanopia (blue-blind)
#00282F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #151f46;
/* rgb */ color: rgb(21, 31, 70);
/* oklch */ color: oklch(25.5% 0.074 269.7);
Tailwind
colors: {
  custom: {
    50: '#585a7a',
    500: '#151f46',
    950: '#000000',
  },
}
SCSS
$custom: #151f46;
$custom-light: #585a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#151f46",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 70
  },
  "hsl": {
    "h": 227.755,
    "s": 53.846,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25481,
    "c": 0.07416,
    "h": 269.7
  },
  "luminance": 0.01582
}

Semantic roles & 50–950 ramp

primary
#151F46
secondary
#7E7039
accent
#BF4BDD
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #151F46

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

Preview Lab → · Contrast checker → · Palette generator →

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