#15256C#15256C

#15256C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.3% C 0.125 H 268.0°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#15256C
RGBrgb(21, 37, 108)
HSLhsl(229, 67%, 25%)
HSVhsv(229, 81%, 42%)
CMYKcmyk(80.6%, 65.7%, 0%, 57.6%)
CIE-LABlab(18.21, 21.64, -43.12)
CIE-LCHlch(18.21, 48.25, 296.66°)
OKLaboklab(30.33% -0.0043 -0.1247)
OKLCHoklch(30.33% 0.125 268)
XYZxyz(3.6767, 2.5649, 14.4857)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15256C #6C5C15
analogous
#15506C #15256C #31156C
triadic
#15256C #6C1525 #256C15
tetradic
#15256C #6C1550 #6C5C15 #156C31
square
#15256C #6C1550 #6C5C15 #156C31
split-complementary
#15256C #6C3115 #506C15
monochromatic
#05091A #0B1339 #15256C #1F379F #2948D2

Accessibility & contrast

On white

13.88
#15256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#15256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15256C
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15256C#FFFFFF#000000##FFFFFF
##15256C1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #15256c;
/* rgb */ color: rgb(21, 37, 108);
/* oklch */ color: oklch(30.3% 0.125 268.0);
Tailwind
colors: {
  custom: {
    50: '#625f97',
    500: '#15256c',
    950: '#000000',
  },
}
SCSS
$custom: #15256c;
$custom-light: #625f97;
$custom-dark: #000000;
JSON
{
  "hex": "#15256c",
  "rgb": {
    "r": 21,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 228.966,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3033,
    "c": 0.12474,
    "h": 268
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#15256C
secondary
#A38F3A
accent
#CB3DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #15256C

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

Preview Lab → · Contrast checker → · Palette generator →

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