#12156F#12156F

#12156F is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.148 H 270.1°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#12156F
RGBrgb(18, 21, 111)
HSLhsl(238, 72%, 25%)
HSVhsv(238, 84%, 44%)
CMYKcmyk(83.8%, 81.1%, 0%, 56.5%)
CIE-LABlab(14.47, 33.19, -51.23)
CIE-LCHlch(14.47, 61.04, 302.93°)
OKLaboklab(27.68% 0.0003 -0.1484)
OKLCHoklch(27.68% 0.148 270.1)
XYZxyz(3.3859, 1.8122, 15.2072)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12156F #6F6C12
analogous
#12436F #12156F #3E126F
triadic
#12156F #6F1215 #156F12
tetradic
#12156F #6F1243 #6F6C12 #126F3E
square
#12156F #6F1243 #6F6C12 #126F3E
split-complementary
#12156F #6F3E12 #436F12
monochromatic
#04051A #090B3A #12156F #1B1FA4 #2329D8

Accessibility & contrast

On white

15.41
#12156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#12156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12156F
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12156F#FFFFFF#000000##FFFFFF
##12156F1.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00206D
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #12156f;
/* rgb */ color: rgb(18, 21, 111);
/* oklch */ color: oklch(27.7% 0.148 270.1);
Tailwind
colors: {
  custom: {
    50: '#645499',
    500: '#12156f',
    950: '#000000',
  },
}
SCSS
$custom: #12156f;
$custom-light: #645499;
$custom-dark: #000000;
JSON
{
  "hex": "#12156f",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 238.065,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27682,
    "c": 0.14839,
    "h": 270.1
  },
  "luminance": 0.01813
}

Semantic roles & 50–950 ramp

primary
#12156F
secondary
#A6A337
accent
#E939EF
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #12156F

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

Preview Lab → · Contrast checker → · Palette generator →

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