#15257E#15257E

#15257E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.150 H 268.0°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#15257E
RGBrgb(21, 37, 126)
HSLhsl(231, 71%, 29%)
HSVhsv(231, 83%, 49%)
CMYKcmyk(83.3%, 70.6%, 0%, 50.6%)
CIE-LABlab(20.00, 28.82, -51.74)
CIE-LCHlch(20.00, 59.23, 299.12°)
OKLaboklab(32.19% -0.0052 -0.1499)
OKLCHoklch(32.19% 0.15 268)
XYZxyz(4.7354, 2.9884, 20.0619)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15257E #7E6E15
analogous
#155A7E #15257E #3A157E
triadic
#15257E #7E1525 #257E15
tetradic
#15257E #7E155A #7E6E15 #157E3A
square
#15257E #7E155A #7E6E15 #157E3A
split-complementary
#15257E #7E3A15 #5A7E15
monochromatic
#04081A #0C164A #15257E #1E34B2 #314BDD

Accessibility & contrast

On white

13.14
#15257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#15257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15257E
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15257E#FFFFFF#000000##FFFFFF
##15257E1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #15257e;
/* rgb */ color: rgb(21, 37, 126);
/* oklch */ color: oklch(32.2% 0.150 268.0);
Tailwind
colors: {
  custom: {
    50: '#675fa4',
    500: '#15257e',
    950: '#000000',
  },
}
SCSS
$custom: #15257e;
$custom-light: #675fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#15257e",
  "rgb": {
    "r": 21,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 230.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32186,
    "c": 0.14997,
    "h": 268
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#15257E
secondary
#B3A13C
accent
#D33AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #15257E

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

Preview Lab → · Contrast checker → · Palette generator →

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