#151F63#151F63

#151F63 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.2% C 0.120 H 270.1°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#151F63
RGBrgb(21, 31, 99)
HSLhsl(232, 65%, 24%)
HSVhsv(232, 79%, 39%)
CMYKcmyk(78.8%, 68.7%, 0%, 61.2%)
CIE-LABlab(15.70, 22.28, -41.34)
CIE-LCHlch(15.70, 46.96, 298.33°)
OKLaboklab(28.21% 0.0003 -0.1195)
OKLCHoklch(28.21% 0.12 270.1)
XYZxyz(3.0506, 2.0399, 12.0349)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F63 #635915
analogous
#154663 #151F63 #321563
triadic
#151F63 #63151F #1F6315
tetradic
#151F63 #631546 #635915 #156332
square
#151F63 #631546 #635915 #156332
split-complementary
#151F63 #633215 #466315
monochromatic
#050819 #0A0F31 #151F63 #202F95 #2A3FC8

Accessibility & contrast

On white

14.91
#151F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#151F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F63
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F63#FFFFFF#000000##FFFFFF
##151F631.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151f63;
/* rgb */ color: rgb(21, 31, 99);
/* oklch */ color: oklch(28.2% 0.120 270.1);
Tailwind
colors: {
  custom: {
    50: '#605a90',
    500: '#151f63',
    950: '#000000',
  },
}
SCSS
$custom: #151f63;
$custom-light: #605a90;
$custom-dark: #000000;
JSON
{
  "hex": "#151f63",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 99
  },
  "hsl": {
    "h": 232.308,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28211,
    "c": 0.11951,
    "h": 270.1
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

primary
#151F63
secondary
#9A8E3A
accent
#D240E8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040D
muted
#7A797D

Preview Lab

Preview with #151F63

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

Preview Lab → · Contrast checker → · Palette generator →

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