#15256F#15256F

#15256F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.129 H 268.1°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#15256F
RGBrgb(21, 37, 111)
HSLhsl(229, 68%, 26%)
HSVhsv(229, 81%, 44%)
CMYKcmyk(81.1%, 66.7%, 0%, 56.5%)
CIE-LABlab(18.50, 22.87, -44.60)
CIE-LCHlch(18.50, 50.12, 297.15°)
OKLaboklab(30.63% -0.0044 -0.129)
OKLCHoklch(30.63% 0.129 268.1)
XYZxyz(3.8391, 2.6298, 15.3411)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15256F #6F5F15
analogous
#15526F #15256F #32156F
triadic
#15256F #6F1525 #256F15
tetradic
#15256F #6F1552 #6F5F15 #156F32
square
#15256F #6F1552 #6F5F15 #156F32
split-complementary
#15256F #6F3215 #526F15
monochromatic
#05091A #0B143C #15256F #1F36A2 #2847D6

Accessibility & contrast

On white

13.76
#15256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#15256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15256F
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15256F#FFFFFF#000000##FFFFFF
##15256F1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00296E
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #15256f;
/* rgb */ color: rgb(21, 37, 111);
/* oklch */ color: oklch(30.6% 0.129 268.1);
Tailwind
colors: {
  custom: {
    50: '#635f99',
    500: '#15256f',
    950: '#000000',
  },
}
SCSS
$custom: #15256f;
$custom-light: #635f99;
$custom-dark: #000000;
JSON
{
  "hex": "#15256f",
  "rgb": {
    "r": 21,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 229.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3063,
    "c": 0.12907,
    "h": 268.1
  },
  "luminance": 0.0263
}

Semantic roles & 50–950 ramp

primary
#15256F
secondary
#A5923A
accent
#CC3DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #15256F

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

Preview Lab → · Contrast checker → · Palette generator →

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