#12145C#12145C

#12145C is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.2% C 0.124 H 272.0°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#12145C
RGBrgb(18, 20, 92)
HSLhsl(238, 67%, 22%)
HSVhsv(238, 80%, 36%)
CMYKcmyk(80.4%, 78.3%, 0%, 63.9%)
CIE-LABlab(11.97, 26.76, -42.81)
CIE-LCHlch(11.97, 50.49, 302.01°)
OKLaboklab(25.24% 0.0044 -0.1239)
OKLCHoklch(25.24% 0.124 272)
XYZxyz(2.4307, 1.4014, 10.2655)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12145C #5C5A12
analogous
#12395C #12145C #35125C
triadic
#12145C #5C1214 #145C12
tetradic
#12145C #5C1239 #5C5A12 #125C35
square
#12145C #5C1239 #5C5A12 #125C35
split-complementary
#12145C #5C3512 #395C12
monochromatic
#05061A #080929 #12145C #1C1F8F #262AC2

Accessibility & contrast

On white

16.40
#12145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#12145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12145C
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12145C#FFFFFF#000000##FFFFFF
##12145C1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12145c;
/* rgb */ color: rgb(18, 20, 92);
/* oklch */ color: oklch(25.2% 0.124 272.0);
Tailwind
colors: {
  custom: {
    50: '#5e528b',
    500: '#12145c',
    950: '#000000',
  },
}
SCSS
$custom: #12145c;
$custom-light: #5e528b;
$custom-dark: #000000;
JSON
{
  "hex": "#12145c",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 238.378,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25236,
    "c": 0.12398,
    "h": 272
  },
  "luminance": 0.01402
}

Semantic roles & 50–950 ramp

primary
#12145C
secondary
#949235
accent
#E63EEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12145C

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

Preview Lab → · Contrast checker → · Palette generator →

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