#12155C#12155C

#12155C is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.4% C 0.123 H 271.8°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#12155C
RGBrgb(18, 21, 92)
HSLhsl(238, 67%, 22%)
HSVhsv(238, 80%, 36%)
CMYKcmyk(80.4%, 77.2%, 0%, 63.9%)
CIE-LABlab(12.20, 26.10, -42.42)
CIE-LCHlch(12.20, 49.80, 301.61°)
OKLaboklab(25.41% 0.0038 -0.1228)
OKLCHoklch(25.41% 0.123 271.8)
XYZxyz(2.4487, 1.4374, 10.2715)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12155C #5C5912
analogous
#123A5C #12155C #34125C
triadic
#12155C #5C1215 #155C12
tetradic
#12155C #5C123A #5C5912 #125C34
square
#12155C #5C123A #5C5912 #125C34
split-complementary
#12155C #5C3412 #3A5C12
monochromatic
#05061A #080929 #12155C #1C218F #262CC2

Accessibility & contrast

On white

16.31
#12155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12155C
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12155C#FFFFFF#000000##FFFFFF
##12155C1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001C5B
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #12155c;
/* rgb */ color: rgb(18, 21, 92);
/* oklch */ color: oklch(25.4% 0.123 271.8);
Tailwind
colors: {
  custom: {
    50: '#5e538b',
    500: '#12155c',
    950: '#000000',
  },
}
SCSS
$custom: #12155c;
$custom-light: #5e538b;
$custom-dark: #000000;
JSON
{
  "hex": "#12155c",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 237.568,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25406,
    "c": 0.12283,
    "h": 271.8
  },
  "luminance": 0.01438
}

Semantic roles & 50–950 ramp

primary
#12155C
secondary
#949135
accent
#E33EEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12155C

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

Preview Lab → · Contrast checker → · Palette generator →

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