#15125F#15125F

#15125F is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.5% C 0.129 H 273.9°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#15125F
RGBrgb(21, 18, 95)
HSLhsl(242, 68%, 22%)
HSVhsv(242, 81%, 37%)
CMYKcmyk(77.9%, 81.1%, 0%, 62.7%)
CIE-LABlab(12.08, 29.45, -44.63)
CIE-LCHlch(12.08, 53.47, 303.42°)
OKLaboklab(25.47% 0.0088 -0.1291)
OKLCHoklch(25.47% 0.129 273.9)
XYZxyz(2.5904, 1.4180, 10.9614)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15125F #5C5F12
analogous
#12355F #15125F #3C125F
triadic
#15125F #5F1512 #125F15
tetradic
#15125F #5F1235 #5C5F12 #125F3C
square
#15125F #5F1235 #5C5F12 #125F3C
split-complementary
#15125F #5F3C12 #355F12
monochromatic
#06051A #0A082C #15125F #201C92 #2C25C6

Accessibility & contrast

On white

16.36
#15125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#15125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15125F
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15125F#FFFFFF#000000##FFFFFF
##15125F1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002361
Deuteranopia (green-blind)
#001C5E
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #15125f;
/* rgb */ color: rgb(21, 18, 95);
/* oklch */ color: oklch(25.5% 0.129 273.9);
Tailwind
colors: {
  custom: {
    50: '#60518d',
    500: '#15125f',
    950: '#000000',
  },
}
SCSS
$custom: #15125f;
$custom-light: #60518d;
$custom-dark: #000000;
JSON
{
  "hex": "#15125f",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 242.338,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.25474,
    "c": 0.12941,
    "h": 273.9
  },
  "luminance": 0.01418
}

Semantic roles & 50–950 ramp

primary
#15125F
secondary
#939736
accent
#EB3DE4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #15125F

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

Preview Lab → · Contrast checker → · Palette generator →

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