#15125D#15125D

#15125D is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.2% C 0.127 H 274.2°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#15125D
RGBrgb(21, 18, 93)
HSLhsl(242, 68%, 22%)
HSVhsv(242, 81%, 36%)
CMYKcmyk(77.4%, 80.6%, 0%, 63.5%)
CIE-LABlab(11.84, 28.72, -43.69)
CIE-LCHlch(11.84, 52.28, 303.32°)
OKLaboklab(25.23% 0.0092 -0.1264)
OKLCHoklch(25.23% 0.127 274.2)
XYZxyz(2.5007, 1.3821, 10.4888)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15125D #5A5D12
analogous
#12355D #15125D #3B125D
triadic
#15125D #5D1512 #125D15
tetradic
#15125D #5D1235 #5A5D12 #125D3B
square
#15125D #5D1235 #5A5D12 #125D3B
split-complementary
#15125D #5D3B12 #355D12
monochromatic
#06051A #09082A #15125D #211C90 #2C26C4

Accessibility & contrast

On white

16.45
#15125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15125D
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15125D#FFFFFF#000000##FFFFFF
##15125D1.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235F
Deuteranopia (green-blind)
#001C5C
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #15125d;
/* rgb */ color: rgb(21, 18, 93);
/* oklch */ color: oklch(25.2% 0.127 274.2);
Tailwind
colors: {
  custom: {
    50: '#60518c',
    500: '#15125d',
    950: '#000000',
  },
}
SCSS
$custom: #15125d;
$custom-light: #60518c;
$custom-dark: #000000;
JSON
{
  "hex": "#15125d",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 242.4,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25234,
    "c": 0.1267,
    "h": 274.2
  },
  "luminance": 0.01382
}

Semantic roles & 50–950 ramp

primary
#15125D
secondary
#929535
accent
#EA3DE4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #15125D

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

Preview Lab → · Contrast checker → · Palette generator →

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