#12155B#12155B

#12155B is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.3% C 0.121 H 271.9°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#12155B
RGBrgb(18, 21, 91)
HSLhsl(238, 67%, 21%)
HSVhsv(238, 80%, 36%)
CMYKcmyk(80.2%, 76.9%, 0%, 64.3%)
CIE-LABlab(12.09, 25.72, -41.93)
CIE-LCHlch(12.09, 49.19, 301.52°)
OKLaboklab(25.29% 0.004 -0.1213)
OKLCHoklch(25.29% 0.121 271.9)
XYZxyz(2.4053, 1.4200, 10.0428)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12155B #5B5812
analogous
#123A5B #12155B #34125B
triadic
#12155B #5B1215 #155B12
tetradic
#12155B #5B123A #5B5812 #125B34
square
#12155B #5B123A #5B5812 #125B34
split-complementary
#12155B #5B3412 #3A5B12
monochromatic
#05061A #080928 #12155B #1C218E #262DC1

Accessibility & contrast

On white

16.36
#12155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#12155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12155B
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12155B#FFFFFF#000000##FFFFFF
##12155B1.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)
#00235D
Deuteranopia (green-blind)
#001C5A
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #12155b;
/* rgb */ color: rgb(18, 21, 91);
/* oklch */ color: oklch(25.3% 0.121 271.9);
Tailwind
colors: {
  custom: {
    50: '#5e538a',
    500: '#12155b',
    950: '#000000',
  },
}
SCSS
$custom: #12155b;
$custom-light: #5e538a;
$custom-dark: #000000;
JSON
{
  "hex": "#12155b",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 237.534,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.2529,
    "c": 0.12142,
    "h": 271.9
  },
  "luminance": 0.0142
}

Semantic roles & 50–950 ramp

primary
#12155B
secondary
#939035
accent
#E33EEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12155B

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

Preview Lab → · Contrast checker → · Palette generator →

#12155B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva