#151A61#151A61

#151A61 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.0% C 0.123 H 271.8°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#151A61
RGBrgb(21, 26, 97)
HSLhsl(236, 64%, 23%)
HSVhsv(236, 78%, 38%)
CMYKcmyk(78.4%, 73.2%, 0%, 62%)
CIE-LABlab(14.18, 24.99, -42.50)
CIE-LCHlch(14.18, 49.30, 300.46°)
OKLaboklab(27.04% 0.0038 -0.1229)
OKLCHoklch(27.04% 0.123 271.8)
XYZxyz(2.8356, 1.7610, 11.4974)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A61 #615C15
analogous
#154061 #151A61 #361561
triadic
#151A61 #61151A #1A6115
tetradic
#151A61 #611540 #615C15 #156136
square
#151A61 #611540 #615C15 #156136
split-complementary
#151A61 #613615 #406115
monochromatic
#050719 #0A0D2F #151A61 #202793 #2B35C6

Accessibility & contrast

On white

15.53
#151A61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#151A61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A61
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A61#FFFFFF#000000##FFFFFF
##151A611.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002060
Tritanopia (blue-blind)
#002D3B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151a61;
/* rgb */ color: rgb(21, 26, 97);
/* oklch */ color: oklch(27.0% 0.123 271.8);
Tailwind
colors: {
  custom: {
    50: '#60578f',
    500: '#151a61',
    950: '#000000',
  },
}
SCSS
$custom: #151a61;
$custom-light: #60578f;
$custom-dark: #000000;
JSON
{
  "hex": "#151a61",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 97
  },
  "hsl": {
    "h": 236.053,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27044,
    "c": 0.12299,
    "h": 271.8
  },
  "luminance": 0.01761
}

Semantic roles & 50–950 ramp

primary
#151A61
secondary
#98923A
accent
#DC40E7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #151A61

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

Preview Lab → · Contrast checker → · Palette generator →

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