#12155E#12155E

#12155E is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.6% C 0.126 H 271.6°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#12155E
RGBrgb(18, 21, 94)
HSLhsl(238, 68%, 22%)
HSVhsv(238, 81%, 37%)
CMYKcmyk(80.9%, 77.7%, 0%, 63.1%)
CIE-LABlab(12.43, 26.87, -43.38)
CIE-LCHlch(12.43, 51.03, 301.78°)
OKLaboklab(25.64% 0.0035 -0.1256)
OKLCHoklch(25.64% 0.126 271.6)
XYZxyz(2.5373, 1.4728, 10.7381)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12155E #5E5B12
analogous
#123B5E #12155E #35125E
triadic
#12155E #5E1215 #155E12
tetradic
#12155E #5E123B #5E5B12 #125E35
square
#12155E #5E123B #5E5B12 #125E35
split-complementary
#12155E #5E3512 #3B5E12
monochromatic
#05061A #080A2B #12155E #1C2091 #262CC5

Accessibility & contrast

On white

16.22
#12155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#12155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12155E
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12155E#FFFFFF#000000##FFFFFF
##12155E1.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#001D5D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #12155e;
/* rgb */ color: rgb(18, 21, 94);
/* oklch */ color: oklch(25.6% 0.126 271.6);
Tailwind
colors: {
  custom: {
    50: '#5f538d',
    500: '#12155e',
    950: '#000000',
  },
}
SCSS
$custom: #12155e;
$custom-light: #5f538d;
$custom-dark: #000000;
JSON
{
  "hex": "#12155e",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 237.632,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25639,
    "c": 0.12562,
    "h": 271.6
  },
  "luminance": 0.01473
}

Semantic roles & 50–950 ramp

primary
#12155E
secondary
#969235
accent
#E43DEB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #12155E

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

Preview Lab → · Contrast checker → · Palette generator →

#12155E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva