#12156A#12156A

#12156A is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.1% C 0.142 H 270.5°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#12156A
RGBrgb(18, 21, 106)
HSLhsl(238, 71%, 24%)
HSVhsv(238, 83%, 42%)
CMYKcmyk(83%, 80.2%, 0%, 58.4%)
CIE-LABlab(13.86, 31.37, -48.98)
CIE-LCHlch(13.86, 58.16, 302.64°)
OKLaboklab(27.07% 0.0013 -0.1418)
OKLCHoklch(27.07% 0.142 270.5)
XYZxyz(3.1183, 1.7052, 13.7977)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12156A #6A6712
analogous
#12416A #12156A #3B126A
triadic
#12156A #6A1215 #156A12
tetradic
#12156A #6A1241 #6A6712 #126A3B
square
#12156A #6A1241 #6A6712 #126A3B
split-complementary
#12156A #6A3B12 #416A12
monochromatic
#04051A #090B36 #12156A #1B1F9E #242AD3

Accessibility & contrast

On white

15.66
#12156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#12156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12156A
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12156A#FFFFFF#000000##FFFFFF
##12156A1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#001F69
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #12156a;
/* rgb */ color: rgb(18, 21, 106);
/* oklch */ color: oklch(27.1% 0.142 270.5);
Tailwind
colors: {
  custom: {
    50: '#625496',
    500: '#12156a',
    950: '#000000',
  },
}
SCSS
$custom: #12156a;
$custom-light: #625496;
$custom-dark: #000000;
JSON
{
  "hex": "#12156a",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 237.955,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27071,
    "c": 0.14186,
    "h": 270.5
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#12156A
secondary
#A29E36
accent
#E83AEE
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06020D
muted
#7A787E

Preview Lab

Preview with #12156A

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

Preview Lab → · Contrast checker → · Palette generator →

#12156A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva