#12135C#12135C

#12135C is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.1% C 0.125 H 272.2°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#12135C
RGBrgb(18, 19, 92)
HSLhsl(239, 67%, 22%)
HSVhsv(239, 80%, 36%)
CMYKcmyk(80.4%, 79.3%, 0%, 63.9%)
CIE-LABlab(11.73, 27.41, -43.19)
CIE-LCHlch(11.73, 51.16, 302.40°)
OKLaboklab(25.07% 0.0049 -0.125)
OKLCHoklch(25.07% 0.125 272.2)
XYZxyz(2.4134, 1.3668, 10.2598)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12135C #5C5B12
analogous
#12385C #12135C #36125C
triadic
#12135C #5C1213 #135C12
tetradic
#12135C #5C1238 #5C5B12 #125C36
square
#12135C #5C1238 #5C5B12 #125C36
split-complementary
#12135C #5C3612 #385C12
monochromatic
#05051A #080829 #12135C #1C1E8F #2628C2

Accessibility & contrast

On white

16.49
#12135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12135C
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12135C#FFFFFF#000000##FFFFFF
##12135C1.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12135c;
/* rgb */ color: rgb(18, 19, 92);
/* oklch */ color: oklch(25.1% 0.125 272.2);
Tailwind
colors: {
  custom: {
    50: '#5e518b',
    500: '#12135c',
    950: '#000000',
  },
}
SCSS
$custom: #12135c;
$custom-light: #5e518b;
$custom-dark: #000000;
JSON
{
  "hex": "#12135c",
  "rgb": {
    "r": 18,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 239.189,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25071,
    "c": 0.12511,
    "h": 272.2
  },
  "luminance": 0.01367
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12135C

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

Preview Lab → · Contrast checker → · Palette generator →

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