#151B5C#151B5C

#151B5C is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.114 H 271.8°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#151B5C
RGBrgb(21, 27, 92)
HSLhsl(235, 63%, 22%)
HSVhsv(235, 77%, 36%)
CMYKcmyk(77.2%, 70.7%, 0%, 63.9%)
CIE-LABlab(13.92, 22.32, -39.59)
CIE-LCHlch(13.92, 45.45, 299.41°)
OKLaboklab(26.7% 0.0037 -0.1144)
OKLCHoklch(26.7% 0.114 271.8)
XYZxyz(2.6323, 1.7157, 10.3156)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B5C #5C5615
analogous
#153E5C #151B5C #33155C
triadic
#151B5C #5C151B #1B5C15
tetradic
#151B5C #5C153E #5C5615 #155C33
square
#151B5C #5C153E #5C5615 #155C33
split-complementary
#151B5C #5C3315 #3E5C15
monochromatic
#060719 #0A0C2A #151B5C #202A8E #2C38C0

Accessibility & contrast

On white

15.63
#151B5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#151B5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B5C
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B5C#FFFFFF#000000##FFFFFF
##151B5C1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151b5c;
/* rgb */ color: rgb(21, 27, 92);
/* oklch */ color: oklch(26.7% 0.114 271.8);
Tailwind
colors: {
  custom: {
    50: '#5f578b',
    500: '#151b5c',
    950: '#000000',
  },
}
SCSS
$custom: #151b5c;
$custom-light: #5f578b;
$custom-dark: #000000;
JSON
{
  "hex": "#151b5c",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 92
  },
  "hsl": {
    "h": 234.93,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26696,
    "c": 0.11449,
    "h": 271.8
  },
  "luminance": 0.01716
}

Semantic roles & 50–950 ramp

primary
#151B5C
secondary
#938C39
accent
#D842E6
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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