#15125E#15125E

#15125E is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.4% C 0.128 H 274.0°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#15125E
RGBrgb(21, 18, 94)
HSLhsl(242, 68%, 22%)
HSVhsv(242, 81%, 37%)
CMYKcmyk(77.7%, 80.9%, 0%, 63.1%)
CIE-LABlab(11.96, 29.09, -44.16)
CIE-LCHlch(11.96, 52.88, 303.37°)
OKLaboklab(25.35% 0.009 -0.1277)
OKLCHoklch(25.35% 0.128 274)
XYZxyz(2.5453, 1.3999, 10.7236)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15125E #5B5E12
analogous
#12355E #15125E #3B125E
triadic
#15125E #5E1512 #125E15
tetradic
#15125E #5E1235 #5B5E12 #125E3B
square
#15125E #5E1235 #5B5E12 #125E3B
split-complementary
#15125E #5E3B12 #355E12
monochromatic
#06051A #0A082B #15125E #201C91 #2C26C5

Accessibility & contrast

On white

16.41
#15125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #15125E
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15125E#FFFFFF#000000##FFFFFF
##15125E1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002360
Deuteranopia (green-blind)
#001C5D
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #15125e;
/* rgb */ color: rgb(21, 18, 94);
/* oklch */ color: oklch(25.4% 0.128 274.0);
Tailwind
colors: {
  custom: {
    50: '#60518d',
    500: '#15125e',
    950: '#000000',
  },
}
SCSS
$custom: #15125e;
$custom-light: #60518d;
$custom-dark: #000000;
JSON
{
  "hex": "#15125e",
  "rgb": {
    "r": 21,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 242.368,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25354,
    "c": 0.12806,
    "h": 274
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #15125E

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

Preview Lab → · Contrast checker → · Palette generator →

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