#152165#152165

#152165 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.8% C 0.120 H 269.4°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#152165
RGBrgb(21, 33, 101)
HSLhsl(231, 66%, 24%)
HSVhsv(231, 79%, 40%)
CMYKcmyk(79.2%, 67.3%, 0%, 60.4%)
CIE-LABlab(16.44, 21.66, -41.44)
CIE-LCHlch(16.44, 46.76, 297.60°)
OKLaboklab(28.82% -0.0013 -0.1198)
OKLCHoklch(28.82% 0.12 269.4)
XYZxyz(3.2013, 2.1864, 12.5627)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152165 #655915
analogous
#154965 #152165 #311565
triadic
#152165 #651521 #216515
tetradic
#152165 #651549 #655915 #156531
square
#152165 #651549 #655915 #156531
split-complementary
#152165 #653115 #496515
monochromatic
#050819 #0A1032 #152165 #203298 #2A42CA

Accessibility & contrast

On white

14.61
#152165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#152165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152165
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152165#FFFFFF#000000##FFFFFF
##1521651.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D67
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#00333F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #152165;
/* rgb */ color: rgb(21, 33, 101);
/* oklch */ color: oklch(28.8% 0.120 269.4);
Tailwind
colors: {
  custom: {
    50: '#615c92',
    500: '#152165',
    950: '#000000',
  },
}
SCSS
$custom: #152165;
$custom-light: #615c92;
$custom-dark: #000000;
JSON
{
  "hex": "#152165",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 101
  },
  "hsl": {
    "h": 231,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28815,
    "c": 0.11981,
    "h": 269.4
  },
  "luminance": 0.02187
}

Semantic roles & 50–950 ramp

primary
#152165
secondary
#9C8D3A
accent
#CF3FE9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #152165

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

Preview Lab → · Contrast checker → · Palette generator →

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