#15257F#15257F

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

Color values

HEX#15257F
RGBrgb(21, 37, 127)
HSLhsl(231, 72%, 29%)
HSVhsv(231, 83%, 50%)
CMYKcmyk(83.5%, 70.9%, 0%, 50.2%)
CIE-LABlab(20.10, 29.21, -52.21)
CIE-LCHlch(20.10, 59.82, 299.23°)
OKLaboklab(32.29% -0.0053 -0.1512)
OKLCHoklch(32.29% 0.151 268)
XYZxyz(4.8003, 3.0143, 20.4034)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15257F #7F6F15
analogous
#155A7F #15257F #3A157F
triadic
#15257F #7F1525 #257F15
tetradic
#15257F #7F155A #7F6F15 #157F3A
square
#15257F #7F155A #7F6F15 #157F3A
split-complementary
#15257F #7F3A15 #5A7F15
monochromatic
#04081A #0C164A #15257F #1E34B4 #314BDD

Accessibility & contrast

On white

13.10
#15257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15257F
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15257F#FFFFFF#000000##FFFFFF
##15257F1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #15257f;
/* rgb */ color: rgb(21, 37, 127);
/* oklch */ color: oklch(32.3% 0.151 268.0);
Tailwind
colors: {
  custom: {
    50: '#685fa5',
    500: '#15257f',
    950: '#000000',
  },
}
SCSS
$custom: #15257f;
$custom-light: #685fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#15257f",
  "rgb": {
    "r": 21,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 230.943,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32293,
    "c": 0.15133,
    "h": 268
  },
  "luminance": 0.03015
}

Semantic roles & 50–950 ramp

primary
#15257F
secondary
#B4A23C
accent
#D339EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #15257F

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

Preview Lab → · Contrast checker → · Palette generator →

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