#151B74#151B74

#151B74 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.148 H 270.2°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#151B74
RGBrgb(21, 27, 116)
HSLhsl(236, 69%, 27%)
HSVhsv(236, 82%, 45%)
CMYKcmyk(81.9%, 76.7%, 0%, 54.5%)
CIE-LABlab(16.52, 31.57, -51.07)
CIE-LCHlch(16.52, 60.04, 301.72°)
OKLaboklab(29.36% 0.0005 -0.1479)
OKLCHoklch(29.36% 0.148 270.2)
XYZxyz(3.8525, 2.2038, 16.7419)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B74 #746E15
analogous
#154A74 #151B74 #3F1574
triadic
#151B74 #74151B #1B7415
tetradic
#151B74 #74154A #746E15 #15743F
square
#151B74 #74154A #746E15 #15743F
split-complementary
#151B74 #743F15 #4A7415
monochromatic
#05061A #0C0F40 #151B74 #1E27A8 #2B36D9

Accessibility & contrast

On white

14.58
#151B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#151B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B74
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B74#FFFFFF#000000##FFFFFF
##151B741.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002472
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #151b74;
/* rgb */ color: rgb(21, 27, 116);
/* oklch */ color: oklch(29.4% 0.148 270.2);
Tailwind
colors: {
  custom: {
    50: '#65589d',
    500: '#151b74',
    950: '#000000',
  },
}
SCSS
$custom: #151b74;
$custom-light: #65589d;
$custom-dark: #000000;
JSON
{
  "hex": "#151b74",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 236.211,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29357,
    "c": 0.14792,
    "h": 270.2
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#151B74
secondary
#AAA33B
accent
#E13CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151B74

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

Preview Lab → · Contrast checker → · Palette generator →

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