#152875#152875

#152875 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.134 H 267.2°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#152875
RGBrgb(21, 40, 117)
HSLhsl(228, 70%, 27%)
HSVhsv(228, 82%, 46%)
CMYKcmyk(82.1%, 65.8%, 0%, 54.1%)
CIE-LABlab(19.89, 23.17, -46.18)
CIE-LCHlch(19.89, 51.67, 296.64°)
OKLaboklab(31.83% -0.0064 -0.1336)
OKLCHoklch(31.83% 0.134 267.2)
XYZxyz(4.2778, 2.9609, 17.1722)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152875 #756215
analogous
#155875 #152875 #321575
triadic
#152875 #751528 #287515
tetradic
#152875 #751558 #756215 #157532
square
#152875 #751558 #756215 #157532
split-complementary
#152875 #753215 #587515
monochromatic
#05091A #0C1641 #152875 #1E3AA9 #2B4ED9

Accessibility & contrast

On white

13.19
#152875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#152875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152875
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152875#FFFFFF#000000##FFFFFF
##1528751.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152875;
/* rgb */ color: rgb(21, 40, 117);
/* oklch */ color: oklch(31.8% 0.134 267.2);
Tailwind
colors: {
  custom: {
    50: '#64619e',
    500: '#152875',
    950: '#000000',
  },
}
SCSS
$custom: #152875;
$custom-light: #64619e;
$custom-dark: #000000;
JSON
{
  "hex": "#152875",
  "rgb": {
    "r": 21,
    "g": 40,
    "b": 117
  },
  "hsl": {
    "h": 228.125,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31832,
    "c": 0.13378,
    "h": 267.2
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#152875
secondary
#AB953B
accent
#C93BEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152875

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

Preview Lab → · Contrast checker → · Palette generator →

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