#15255A#15255A

#15255A is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.6% C 0.098 H 267.2°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#15255A
RGBrgb(21, 37, 90)
HSLhsl(226, 62%, 22%)
HSVhsv(226, 77%, 35%)
CMYKcmyk(76.7%, 58.9%, 0%, 64.7%)
CIE-LABlab(16.60, 14.17, -33.87)
CIE-LCHlch(16.60, 36.72, 292.71°)
OKLaboklab(28.63% -0.0047 -0.0975)
OKLCHoklch(28.63% 0.098 267.2)
XYZxyz(2.8157, 2.2205, 9.9511)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15255A #5A4A15
analogous
#15485A #15255A #28155A
triadic
#15255A #5A1525 #255A15
tetradic
#15255A #5A1548 #5A4A15 #155A28
square
#15255A #5A1548 #5A4A15 #155A28
split-complementary
#15255A #5A2815 #485A15
monochromatic
#060A19 #091128 #15255A #21398C #2C4EBD

Accessibility & contrast

On white

14.54
#15255A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#15255A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15255A
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15255A#FFFFFF#000000##FFFFFF
##15255A1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#002659
Tritanopia (blue-blind)
#00323B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #15255a;
/* rgb */ color: rgb(21, 37, 90);
/* oklch */ color: oklch(28.6% 0.098 267.2);
Tailwind
colors: {
  custom: {
    50: '#5d5f89',
    500: '#15255a',
    950: '#000000',
  },
}
SCSS
$custom: #15255a;
$custom-light: #5d5f89;
$custom-dark: #000000;
JSON
{
  "hex": "#15255a",
  "rgb": {
    "r": 21,
    "g": 37,
    "b": 90
  },
  "hsl": {
    "h": 226.087,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28631,
    "c": 0.09764,
    "h": 267.2
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#15255A
secondary
#927D39
accent
#C043E5
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #15255A

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

Preview Lab → · Contrast checker → · Palette generator →

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