#12158F#12158F

#12158F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.188 H 268.2°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#12158F
RGBrgb(18, 21, 143)
HSLhsl(239, 78%, 32%)
HSVhsv(239, 87%, 56%)
CMYKcmyk(87.4%, 85.3%, 0%, 43.9%)
CIE-LABlab(18.57, 44.07, -64.80)
CIE-LCHlch(18.57, 78.36, 304.22°)
OKLaboklab(31.72% -0.006 -0.1876)
OKLCHoklch(31.72% 0.188 268.2)
XYZxyz(5.4738, 2.6474, 26.2038)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12158F #8F8C12
analogous
#12548F #12158F #4E128F
triadic
#12158F #8F1215 #158F12
tetradic
#12158F #8F1254 #8F8C12 #128F4E
square
#12158F #8F1254 #8F8C12 #128F4E
split-complementary
#12158F #8F4E12 #548F12
monochromatic
#040522 #0B0D59 #12158F #191DC5 #363AE6

Accessibility & contrast

On white

13.73
#12158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#12158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12158F
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12158F#FFFFFF#000000##FFFFFF
##12158F1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00268D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #12158f;
/* rgb */ color: rgb(18, 21, 143);
/* oklch */ color: oklch(31.7% 0.188 268.2);
Tailwind
colors: {
  custom: {
    50: '#6d56b1',
    500: '#12158f',
    950: '#000000',
  },
}
SCSS
$custom: #12158f;
$custom-light: #6d56b1;
$custom-dark: #000000;
JSON
{
  "hex": "#12158f",
  "rgb": {
    "r": 18,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 238.56,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31722,
    "c": 0.18772,
    "h": 268.2
  },
  "luminance": 0.02648
}

Semantic roles & 50–950 ramp

primary
#12158F
secondary
#C3C03A
accent
#F034F4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #12158F

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

Preview Lab → · Contrast checker → · Palette generator →

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