#12135B#12135B

#12135B is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 25.0% C 0.124 H 272.3°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#12135B
RGBrgb(18, 19, 91)
HSLhsl(239, 67%, 21%)
HSVhsv(239, 80%, 36%)
CMYKcmyk(80.2%, 79.1%, 0%, 64.3%)
CIE-LABlab(11.62, 27.04, -42.71)
CIE-LCHlch(11.62, 50.55, 302.33°)
OKLaboklab(24.95% 0.0051 -0.1236)
OKLCHoklch(24.95% 0.124 272.3)
XYZxyz(2.3700, 1.3494, 10.0311)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12135B #5B5A12
analogous
#12385B #12135B #36125B
triadic
#12135B #5B1213 #135B12
tetradic
#12135B #5B1238 #5B5A12 #125B36
square
#12135B #5B1238 #5B5A12 #125B36
split-complementary
#12135B #5B3612 #385B12
monochromatic
#05051A #080828 #12135B #1C1E8E #2628C1

Accessibility & contrast

On white

16.54
#12135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#12135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12135B
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12135B#FFFFFF#000000##FFFFFF
##12135B1.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225D
Deuteranopia (green-blind)
#001B5A
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #12135b;
/* rgb */ color: rgb(18, 19, 91);
/* oklch */ color: oklch(25.0% 0.124 272.3);
Tailwind
colors: {
  custom: {
    50: '#5e518a',
    500: '#12135b',
    950: '#000000',
  },
}
SCSS
$custom: #12135b;
$custom-light: #5e518a;
$custom-dark: #000000;
JSON
{
  "hex": "#12135b",
  "rgb": {
    "r": 18,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 239.178,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.24952,
    "c": 0.12372,
    "h": 272.3
  },
  "luminance": 0.0135
}

Semantic roles & 50–950 ramp

primary
#12135B
secondary
#939235
accent
#E83EEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12135B

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

Preview Lab → · Contrast checker → · Palette generator →

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