#15255B#15255B

#15255B is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.7% C 0.099 H 267.3°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#15255B
RGBrgb(21, 37, 91)
HSLhsl(226, 63%, 22%)
HSVhsv(226, 77%, 36%)
CMYKcmyk(76.9%, 59.3%, 0%, 64.3%)
CIE-LABlab(16.69, 14.59, -34.41)
CIE-LCHlch(16.69, 37.37, 292.99°)
OKLaboklab(28.72% -0.0046 -0.0991)
OKLCHoklch(28.72% 0.099 267.3)
XYZxyz(2.8585, 2.2376, 10.1768)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15255B #5B4B15
analogous
#15485B #15255B #28155B
triadic
#15255B #5B1525 #255B15
tetradic
#15255B #5B1548 #5B4B15 #155B28
square
#15255B #5B1548 #5B4B15 #155B28
split-complementary
#15255B #5B2815 #485B15
monochromatic
#060A19 #0A1129 #15255B #20398D #2C4DBE

Accessibility & contrast

On white

14.51
#15255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#15255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15255B
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15255B#FFFFFF#000000##FFFFFF
##15255B1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#00323C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #15255b;
/* rgb */ color: rgb(21, 37, 91);
/* oklch */ color: oklch(28.7% 0.099 267.3);
Tailwind
colors: {
  custom: {
    50: '#5d5f8a',
    500: '#15255b',
    950: '#000000',
  },
}
SCSS
$custom: #15255b;
$custom-light: #5d5f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#15255b",
  "rgb": {
    "r": 21,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 226.286,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2872,
    "c": 0.0992,
    "h": 267.3
  },
  "luminance": 0.02238
}

Semantic roles & 50–950 ramp

primary
#15255B
secondary
#927E39
accent
#C042E6
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #15255B

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

Preview Lab → · Contrast checker → · Palette generator →

#15255B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva