#151B71#151B71

#151B71 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.144 H 270.4°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#151B71
RGBrgb(21, 27, 113)
HSLhsl(236, 69%, 26%)
HSVhsv(236, 81%, 44%)
CMYKcmyk(81.4%, 76.1%, 0%, 55.7%)
CIE-LABlab(16.18, 30.45, -49.70)
CIE-LCHlch(16.18, 58.29, 301.50°)
OKLaboklab(29.01% 0.001 -0.1439)
OKLCHoklch(29.01% 0.144 270.4)
XYZxyz(3.6808, 2.1351, 15.8377)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B71 #716B15
analogous
#154971 #151B71 #3D1571
triadic
#151B71 #71151B #1B7115
tetradic
#151B71 #711549 #716B15 #15713D
square
#151B71 #711549 #716B15 #15713D
split-complementary
#151B71 #713D15 #497115
monochromatic
#05061A #0B0F3D #151B71 #1F27A5 #2935D7

Accessibility & contrast

On white

14.71
#151B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#151B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B71
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B71#FFFFFF#000000##FFFFFF
##151B711.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151b71;
/* rgb */ color: rgb(21, 27, 113);
/* oklch */ color: oklch(29.0% 0.144 270.4);
Tailwind
colors: {
  custom: {
    50: '#65589b',
    500: '#151b71',
    950: '#000000',
  },
}
SCSS
$custom: #151b71;
$custom-light: #65589b;
$custom-dark: #000000;
JSON
{
  "hex": "#151b71",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 236.087,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29011,
    "c": 0.14392,
    "h": 270.4
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#151B71
secondary
#A7A03B
accent
#E03CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151B71

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

Preview Lab → · Contrast checker → · Palette generator →

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