#15257C#15257C

#15257C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.147 H 268.0°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#15257C
RGBrgb(21, 37, 124)
HSLhsl(231, 71%, 28%)
HSVhsv(231, 83%, 49%)
CMYKcmyk(83.1%, 70.2%, 0%, 51.4%)
CIE-LABlab(19.79, 28.04, -50.81)
CIE-LCHlch(19.79, 58.04, 298.89°)
OKLaboklab(31.97% -0.0051 -0.1472)
OKLCHoklch(31.97% 0.147 268)
XYZxyz(4.6077, 2.9373, 19.3890)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15257C #7C6C15
analogous
#15587C #15257C #39157C
triadic
#15257C #7C1525 #257C15
tetradic
#15257C #7C1558 #7C6C15 #157C39
square
#15257C #7C1558 #7C6C15 #157C39
split-complementary
#15257C #7C3915 #587C15
monochromatic
#04081A #0C1548 #15257C #1E35B0 #304ADC

Accessibility & contrast

On white

13.23
#15257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#15257C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15257C
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15257C#FFFFFF#000000##FFFFFF
##15257C1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #15257c;
/* rgb */ color: rgb(21, 37, 124);
/* oklch */ color: oklch(32.0% 0.147 268.0);
Tailwind
colors: {
  custom: {
    50: '#675fa3',
    500: '#15257c',
    950: '#000000',
  },
}
SCSS
$custom: #15257c;
$custom-light: #675fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#15257c",
  "rgb": {
    "r": 21,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 230.68,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31973,
    "c": 0.14726,
    "h": 268
  },
  "luminance": 0.02938
}

Semantic roles & 50–950 ramp

primary
#15257C
secondary
#B19F3C
accent
#D23AEE
background
#F6F5FA
surface
#EBE9F4
border
#C6C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #15257C

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

Preview Lab → · Contrast checker → · Palette generator →

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