#12378E#12378E

#12378E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.2% C 0.150 H 263.4°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#12378E
RGBrgb(18, 55, 142)
HSLhsl(222, 78%, 31%)
HSVhsv(222, 87%, 56%)
CMYKcmyk(87.3%, 61.3%, 0%, 44.3%)
CIE-LABlab(26.20, 22.55, -51.60)
CIE-LCHlch(26.20, 56.32, 293.61°)
OKLaboklab(37.2% -0.0173 -0.1493)
OKLCHoklch(37.2% 0.15 263.4)
XYZxyz(6.4964, 4.8132, 26.1726)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12378E #8E6912
analogous
#12758E #12378E #2B128E
triadic
#12378E #8E1237 #378E12
tetradic
#12378E #8E1275 #8E6912 #128E2B
square
#12378E #8E1275 #8E6912 #128E2B
split-complementary
#12378E #8E2B12 #758E12
monochromatic
#040D21 #0B2258 #12378E #194CC4 #356AE5

Accessibility & contrast

On white

10.70
#12378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#12378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12378E
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12378E#FFFFFF#000000##FFFFFF
##12378E1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #12378e;
/* rgb */ color: rgb(18, 55, 142);
/* oklch */ color: oklch(37.2% 0.150 263.4);
Tailwind
colors: {
  custom: {
    50: '#696db0',
    500: '#12378e',
    950: '#000000',
  },
}
SCSS
$custom: #12378e;
$custom-light: #696db0;
$custom-dark: #000000;
JSON
{
  "hex": "#12378e",
  "rgb": {
    "r": 18,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 222.097,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.372,
    "c": 0.15033,
    "h": 263.4
  },
  "luminance": 0.04814
}

Semantic roles & 50–950 ramp

primary
#12378E
secondary
#C2993A
accent
#BB34F4
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#080711
muted
#7A7A80

Preview Lab

Preview with #12378E

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

Preview Lab → · Contrast checker → · Palette generator →

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