#152980#152980

#152980 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.148 H 267.1°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#152980
RGBrgb(21, 41, 128)
HSLhsl(229, 72%, 29%)
HSVhsv(229, 84%, 50%)
CMYKcmyk(83.6%, 68%, 0%, 49.8%)
CIE-LABlab(21.22, 26.88, -51.00)
CIE-LCHlch(21.22, 57.65, 297.79°)
OKLaboklab(33.14% -0.0074 -0.1477)
OKLCHoklch(33.14% 0.148 267.1)
XYZxyz(4.9971, 3.3032, 20.7921)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152980 #806C15
analogous
#155F80 #152980 #371580
triadic
#152980 #801529 #298015
tetradic
#152980 #80155F #806C15 #158037
square
#152980 #80155F #806C15 #158037
split-complementary
#152980 #803715 #5F8015
monochromatic
#04081A #0C184B #152980 #1E3AB5 #3252DD

Accessibility & contrast

On white

12.64
#152980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#152980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152980
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152980#FFFFFF#000000##FFFFFF
##1529801.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152980;
/* rgb */ color: rgb(21, 41, 128);
/* oklch */ color: oklch(33.1% 0.148 267.1);
Tailwind
colors: {
  custom: {
    50: '#6762a6',
    500: '#152980',
    950: '#000000',
  },
}
SCSS
$custom: #152980;
$custom-light: #6762a6;
$custom-dark: #000000;
JSON
{
  "hex": "#152980",
  "rgb": {
    "r": 21,
    "g": 41,
    "b": 128
  },
  "hsl": {
    "h": 228.785,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3314,
    "c": 0.14788,
    "h": 267.1
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#152980
secondary
#B59E3C
accent
#CD39EF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152980

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

Preview Lab → · Contrast checker → · Palette generator →

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