#12155A#12155A

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

Color values

HEX#12155A
RGBrgb(18, 21, 90)
HSLhsl(238, 67%, 21%)
HSVhsv(238, 80%, 35%)
CMYKcmyk(80%, 76.7%, 0%, 64.7%)
CIE-LABlab(11.98, 25.33, -41.45)
CIE-LCHlch(11.98, 48.57, 301.43°)
OKLaboklab(25.17% 0.0042 -0.1199)
OKLCHoklch(25.17% 0.12 272)
XYZxyz(2.3625, 1.4029, 9.8172)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12155A #5A5712
analogous
#12395A #12155A #33125A
triadic
#12155A #5A1215 #155A12
tetradic
#12155A #5A1239 #5A5712 #125A33
square
#12155A #5A1239 #5A5712 #125A33
split-complementary
#12155A #5A3312 #395A12
monochromatic
#05061A #080927 #12155A #1C218D #262DC0

Accessibility & contrast

On white

16.40
#12155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#12155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12155A
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12155A#FFFFFF#000000##FFFFFF
##12155A1.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)
#00235C
Deuteranopia (green-blind)
#001C59
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #12155a;
/* rgb */ color: rgb(18, 21, 90);
/* oklch */ color: oklch(25.2% 0.120 272.0);
Tailwind
colors: {
  custom: {
    50: '#5e5389',
    500: '#12155a',
    950: '#000000',
  },
}
SCSS
$custom: #12155a;
$custom-light: #5e5389;
$custom-dark: #000000;
JSON
{
  "hex": "#12155a",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 237.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25174,
    "c": 0.12001,
    "h": 272
  },
  "luminance": 0.01403
}

Semantic roles & 50–950 ramp

primary
#12155A
secondary
#938F35
accent
#E23EEA
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #12155A

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

Preview Lab → · Contrast checker → · Palette generator →

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