#151875#151875

#151875 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.152 H 270.6°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#151875
RGBrgb(21, 24, 117)
HSLhsl(238, 70%, 27%)
HSVhsv(238, 82%, 46%)
CMYKcmyk(82.1%, 79.5%, 0%, 54.1%)
CIE-LABlab(15.99, 33.78, -52.61)
CIE-LCHlch(15.99, 62.52, 302.71°)
OKLaboklab(29.01% 0.0015 -0.1523)
OKLCHoklch(29.01% 0.152 270.6)
XYZxyz(3.8457, 2.0966, 17.0282)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151875 #757215
analogous
#154875 #151875 #421575
triadic
#151875 #751518 #187515
tetradic
#151875 #751548 #757215 #157542
square
#151875 #751548 #757215 #157542
split-complementary
#151875 #754215 #487515
monochromatic
#05051A #0C0D41 #151875 #1E23A9 #2B31D9

Accessibility & contrast

On white

14.79
#151875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#151875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151875
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151875#FFFFFF#000000##FFFFFF
##1518751.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002373
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151875;
/* rgb */ color: rgb(21, 24, 117);
/* oklch */ color: oklch(29.0% 0.152 270.6);
Tailwind
colors: {
  custom: {
    50: '#66569e',
    500: '#151875',
    950: '#000000',
  },
}
SCSS
$custom: #151875;
$custom-light: #66569e;
$custom-dark: #000000;
JSON
{
  "hex": "#151875",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 238.125,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29011,
    "c": 0.15235,
    "h": 270.6
  },
  "luminance": 0.02097
}

Semantic roles & 50–950 ramp

primary
#151875
secondary
#ABA73B
accent
#E73BEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151875

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

Preview Lab → · Contrast checker → · Palette generator →

#151875 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva