#151B4C#151B4C

#151B4C is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.090 H 272.8°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#151B4C
RGBrgb(21, 27, 76)
HSLhsl(233, 57%, 19%)
HSVhsv(233, 72%, 30%)
CMYKcmyk(72.4%, 64.5%, 0%, 70.2%)
CIE-LABlab(12.38, 15.82, -31.23)
CIE-LCHlch(12.38, 35.01, 296.86°)
OKLaboklab(25.09% 0.0044 -0.0899)
OKLCHoklch(25.09% 0.09 272.8)
XYZxyz(2.0053, 1.4649, 7.0132)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B4C #4C4615
analogous
#15374C #151B4C #2B154C
triadic
#151B4C #4C151B #1B4C15
tetradic
#151B4C #4C1537 #4C4615 #154C2B
square
#151B4C #4C1537 #4C4615 #154C2B
split-complementary
#151B4C #4C2B15 #374C15
monochromatic
#070918 #080A1C #151B4C #222C7C #2F3DAC

Accessibility & contrast

On white

16.24
#151B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#151B4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B4C
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B4C#FFFFFF#000000##FFFFFF
##151B4C1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#002730
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #151b4c;
/* rgb */ color: rgb(21, 27, 76);
/* oklch */ color: oklch(25.1% 0.090 272.8);
Tailwind
colors: {
  custom: {
    50: '#5a577e',
    500: '#151b4c',
    950: '#000000',
  },
}
SCSS
$custom: #151b4c;
$custom-light: #5a577e;
$custom-dark: #000000;
JSON
{
  "hex": "#151b4c",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 76
  },
  "hsl": {
    "h": 233.455,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2509,
    "c": 0.09002,
    "h": 272.8
  },
  "luminance": 0.01465
}

Semantic roles & 50–950 ramp

primary
#151B4C
secondary
#847C39
accent
#CF48E0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #151B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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