#151A8F#151A8F

#151A8F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.183 H 268.8°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#151A8F
RGBrgb(21, 26, 143)
HSLhsl(238, 74%, 32%)
HSVhsv(238, 85%, 56%)
CMYKcmyk(85.3%, 81.8%, 0%, 43.9%)
CIE-LABlab(19.56, 41.69, -63.15)
CIE-LCHlch(19.56, 75.67, 303.43°)
OKLaboklab(32.45% -0.004 -0.1829)
OKLCHoklch(32.45% 0.183 268.8)
XYZxyz(5.6349, 2.8807, 26.2403)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A8F #8F8A15
analogous
#15578F #151A8F #4D158F
triadic
#151A8F #8F151A #1A8F15
tetradic
#151A8F #8F1557 #8F8A15 #158F4D
square
#151A8F #8F1557 #8F8A15 #158F4D
split-complementary
#151A8F #8F4D15 #578F15
monochromatic
#050724 #0D105A #151A8F #1D24C4 #3C43E2

Accessibility & contrast

On white

13.32
#151A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#151A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A8F
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A8F#FFFFFF#000000##FFFFFF
##151A8F1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #151a8f;
/* rgb */ color: rgb(21, 26, 143);
/* oklch */ color: oklch(32.4% 0.183 268.8);
Tailwind
colors: {
  custom: {
    50: '#6d59b1',
    500: '#151a8f',
    950: '#000000',
  },
}
SCSS
$custom: #151a8f;
$custom-light: #6d59b1;
$custom-dark: #000000;
JSON
{
  "hex": "#151a8f",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 237.541,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32445,
    "c": 0.18297,
    "h": 268.8
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#151A8F
secondary
#C2BD3E
accent
#E937F1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #151A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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