#151B61#151B61

#151B61 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.2% C 0.122 H 271.5°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#151B61
RGBrgb(21, 27, 97)
HSLhsl(235, 64%, 23%)
HSVhsv(235, 78%, 38%)
CMYKcmyk(78.4%, 72.2%, 0%, 62%)
CIE-LABlab(14.43, 24.30, -42.08)
CIE-LCHlch(14.43, 48.59, 300.00°)
OKLaboklab(27.23% 0.0032 -0.1217)
OKLCHoklch(27.23% 0.122 271.5)
XYZxyz(2.8581, 1.8061, 11.5049)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B61 #615B15
analogous
#154161 #151B61 #351561
triadic
#151B61 #61151B #1B6115
tetradic
#151B61 #611541 #615B15 #156135
square
#151B61 #611541 #615B15 #156135
split-complementary
#151B61 #613515 #416115
monochromatic
#050719 #0A0D2F #151B61 #202993 #2B37C6

Accessibility & contrast

On white

15.43
#151B61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#151B61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B61
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B61#FFFFFF#000000##FFFFFF
##151B611.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151b61;
/* rgb */ color: rgb(21, 27, 97);
/* oklch */ color: oklch(27.2% 0.122 271.5);
Tailwind
colors: {
  custom: {
    50: '#60578f',
    500: '#151b61',
    950: '#000000',
  },
}
SCSS
$custom: #151b61;
$custom-light: #60578f;
$custom-dark: #000000;
JSON
{
  "hex": "#151b61",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 97
  },
  "hsl": {
    "h": 235.263,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27229,
    "c": 0.12175,
    "h": 271.5
  },
  "luminance": 0.01806
}

Semantic roles & 50–950 ramp

primary
#151B61
secondary
#98913A
accent
#DA40E7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #151B61

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

Preview Lab → · Contrast checker → · Palette generator →

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