#151F50#151F50

#151F50 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.091 H 270.3°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#151F50
RGBrgb(21, 31, 80)
HSLhsl(230, 58%, 20%)
HSVhsv(230, 74%, 31%)
CMYKcmyk(73.7%, 61.2%, 0%, 68.6%)
CIE-LABlab(13.93, 14.47, -31.46)
CIE-LCHlch(13.93, 34.62, 294.70°)
OKLaboklab(26.36% 0.0005 -0.0905)
OKLCHoklch(26.36% 0.091 270.3)
XYZxyz(2.2467, 1.7184, 7.8011)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F50 #504615
analogous
#153C50 #151F50 #291550
triadic
#151F50 #50151F #1F5015
tetradic
#151F50 #50153C #504615 #155029
square
#151F50 #50153C #504615 #155029
split-complementary
#151F50 #502915 #3C5015
monochromatic
#060918 #080C20 #151F50 #223280 #2E45B1

Accessibility & contrast

On white

15.63
#151F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#151F50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F50
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F50#FFFFFF#000000##FFFFFF
##151F501.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002652
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151f50;
/* rgb */ color: rgb(21, 31, 80);
/* oklch */ color: oklch(26.4% 0.091 270.3);
Tailwind
colors: {
  custom: {
    50: '#5b5a81',
    500: '#151f50',
    950: '#000000',
  },
}
SCSS
$custom: #151f50;
$custom-light: #5b5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#151f50",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 80
  },
  "hsl": {
    "h": 229.831,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26357,
    "c": 0.09051,
    "h": 270.3
  },
  "luminance": 0.01719
}

Semantic roles & 50–950 ramp

primary
#151F50
secondary
#887A39
accent
#C746E2
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #151F50

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

Preview Lab → · Contrast checker → · Palette generator →

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