#15255F#15255F

#15255F is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.1% C 0.105 H 267.6°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#15255F
RGBrgb(21, 37, 95)
HSLhsl(227, 64%, 23%)
HSVhsv(227, 78%, 37%)
CMYKcmyk(77.9%, 61.1%, 0%, 62.7%)
CIE-LABlab(17.03, 16.27, -36.51)
CIE-LCHlch(17.03, 39.97, 294.02°)
OKLaboklab(29.08% -0.0044 -0.1053)
OKLCHoklch(29.08% 0.105 267.6)
XYZxyz(3.0357, 2.3085, 11.1098)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15255F #5F4F15
analogous
#154A5F #15255F #2A155F
triadic
#15255F #5F1525 #255F15
tetradic
#15255F #5F154A #5F4F15 #155F2A
square
#15255F #5F154A #5F4F15 #155F2A
split-complementary
#15255F #5F2A15 #4A5F15
monochromatic
#060A19 #0A112D #15255F #203991 #2B4CC3

Accessibility & contrast

On white

14.37
#15255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15255F
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15255F#FFFFFF#000000##FFFFFF
##15255F1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #15255f;
/* rgb */ color: rgb(21, 37, 95);
/* oklch */ color: oklch(29.1% 0.105 267.6);
Tailwind
colors: {
  custom: {
    50: '#5e5f8d',
    500: '#15255f',
    950: '#000000',
  },
}
SCSS
$custom: #15255f;
$custom-light: #5e5f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#15255f",
  "rgb": {
    "r": 21,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 227.027,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29084,
    "c": 0.10537,
    "h": 267.6
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#15255F
secondary
#96823A
accent
#C341E7
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #15255F

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

Preview Lab → · Contrast checker → · Palette generator →

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