#151B50#151B50

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

Color values

HEX#151B50
RGBrgb(21, 27, 80)
HSLhsl(234, 58%, 20%)
HSVhsv(234, 74%, 31%)
CMYKcmyk(73.7%, 66.3%, 0%, 68.6%)
CIE-LABlab(12.75, 17.46, -33.38)
CIE-LCHlch(12.75, 37.67, 297.61°)
OKLaboklab(25.48% 0.0044 -0.0962)
OKLCHoklch(25.48% 0.096 272.6)
XYZxyz(2.1487, 1.5223, 7.7685)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B50 #504A15
analogous
#153950 #151B50 #2C1550
triadic
#151B50 #50151B #1B5015
tetradic
#151B50 #501539 #504A15 #15502C
square
#151B50 #501539 #504A15 #15502C
split-complementary
#151B50 #502C15 #395015
monochromatic
#060818 #080B20 #151B50 #222B80 #2E3CB1

Accessibility & contrast

On white

16.10
#151B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#151B50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B50
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B50#FFFFFF#000000##FFFFFF
##151B501.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#001E4F
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151b50;
/* rgb */ color: rgb(21, 27, 80);
/* oklch */ color: oklch(25.5% 0.096 272.6);
Tailwind
colors: {
  custom: {
    50: '#5b5782',
    500: '#151b50',
    950: '#000000',
  },
}
SCSS
$custom: #151b50;
$custom-light: #5b5782;
$custom-dark: #000000;
JSON
{
  "hex": "#151b50",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 80
  },
  "hsl": {
    "h": 233.898,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25475,
    "c": 0.09633,
    "h": 272.6
  },
  "luminance": 0.01522
}

Semantic roles & 50–950 ramp

primary
#151B50
secondary
#888039
accent
#D246E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #151B50

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

Preview Lab → · Contrast checker → · Palette generator →

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