#151A71#151A71

#151A71 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.145 H 270.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#151A71
RGBrgb(21, 26, 113)
HSLhsl(237, 69%, 26%)
HSVhsv(237, 81%, 44%)
CMYKcmyk(81.4%, 77%, 0%, 55.7%)
CIE-LABlab(15.95, 31.09, -50.07)
CIE-LCHlch(15.95, 58.94, 301.83°)
OKLaboklab(28.85% 0.0014 -0.145)
OKLCHoklch(28.85% 0.145 270.6)
XYZxyz(3.6583, 2.0901, 15.8302)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A71 #716C15
analogous
#154871 #151A71 #3E1571
triadic
#151A71 #71151A #1A7115
tetradic
#151A71 #711548 #716C15 #15713E
square
#151A71 #711548 #716C15 #15713E
split-complementary
#151A71 #713E15 #487115
monochromatic
#05061A #0B0E3D #151A71 #1F26A5 #2933D7

Accessibility & contrast

On white

14.81
#151A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#151A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A71
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A71#FFFFFF#000000##FFFFFF
##151A711.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151a71;
/* rgb */ color: rgb(21, 26, 113);
/* oklch */ color: oklch(28.8% 0.145 270.6);
Tailwind
colors: {
  custom: {
    50: '#65579b',
    500: '#151a71',
    950: '#000000',
  },
}
SCSS
$custom: #151a71;
$custom-light: #65579b;
$custom-dark: #000000;
JSON
{
  "hex": "#151a71",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 236.739,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28849,
    "c": 0.14502,
    "h": 270.6
  },
  "luminance": 0.0209
}

Semantic roles & 50–950 ramp

primary
#151A71
secondary
#A7A13B
accent
#E23CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151A71

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

Preview Lab → · Contrast checker → · Palette generator →

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