#15255E#15255E

#15255E is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.0% C 0.104 H 267.5°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#15255E
RGBrgb(21, 37, 94)
HSLhsl(227, 63%, 23%)
HSVhsv(227, 78%, 37%)
CMYKcmyk(77.7%, 60.6%, 0%, 63.1%)
CIE-LABlab(16.94, 15.85, -35.99)
CIE-LCHlch(16.94, 39.32, 293.77°)
OKLaboklab(28.99% -0.0045 -0.1037)
OKLCHoklch(28.99% 0.104 267.5)
XYZxyz(2.9905, 2.2904, 10.8720)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15255E #5E4E15
analogous
#154A5E #15255E #29155E
triadic
#15255E #5E1525 #255E15
tetradic
#15255E #5E154A #5E4E15 #155E29
square
#15255E #5E154A #5E4E15 #155E29
split-complementary
#15255E #5E2915 #4A5E15
monochromatic
#060A19 #0A112C #15255E #203990 #2B4CC2

Accessibility & contrast

On white

14.40
#15255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#15255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15255E
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15255E#FFFFFF#000000##FFFFFF
##15255E1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#00275D
Tritanopia (blue-blind)
#00333D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #15255e;
/* rgb */ color: rgb(21, 37, 94);
/* oklch */ color: oklch(29.0% 0.104 267.5);
Tailwind
colors: {
  custom: {
    50: '#5e5f8c',
    500: '#15255e',
    950: '#000000',
  },
}
SCSS
$custom: #15255e;
$custom-light: #5e5f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#15255e",
  "rgb": {
    "r": 21,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 226.849,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28992,
    "c": 0.10384,
    "h": 267.5
  },
  "luminance": 0.02291
}

Semantic roles & 50–950 ramp

primary
#15255E
secondary
#958139
accent
#C241E7
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #15255E

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

Preview Lab → · Contrast checker → · Palette generator →

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