#12138F#12138F

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

Color values

HEX#12138F
RGBrgb(18, 19, 143)
HSLhsl(240, 78%, 32%)
HSVhsv(240, 87%, 56%)
CMYKcmyk(87.4%, 86.7%, 0%, 43.9%)
CIE-LABlab(18.26, 44.99, -65.31)
CIE-LCHlch(18.26, 79.31, 304.56°)
OKLaboklab(31.51% -0.0058 -0.1891)
OKLCHoklch(31.51% 0.189 268.2)
XYZxyz(5.4386, 2.5768, 26.1920)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12138F #8F8E12
analogous
#12528F #12138F #50128F
triadic
#12138F #8F1213 #138F12
tetradic
#12138F #8F1252 #8F8E12 #128F50
square
#12138F #8F1252 #8F8E12 #128F50
split-complementary
#12138F #8F5012 #528F12
monochromatic
#040522 #0B0C59 #12138F #191AC5 #3637E6

Accessibility & contrast

On white

13.86
#12138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#12138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12138F
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12138F#FFFFFF#000000##FFFFFF
##12138F1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12138f;
/* rgb */ color: rgb(18, 19, 143);
/* oklch */ color: oklch(31.5% 0.189 268.2);
Tailwind
colors: {
  custom: {
    50: '#6d55b1',
    500: '#12138f',
    950: '#000000',
  },
}
SCSS
$custom: #12138f;
$custom-light: #6d55b1;
$custom-dark: #000000;
JSON
{
  "hex": "#12138f",
  "rgb": {
    "r": 18,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 239.52,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31508,
    "c": 0.18916,
    "h": 268.2
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#12138F
secondary
#C3C23A
accent
#F334F4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #12138F

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

Preview Lab → · Contrast checker → · Palette generator →

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