#12378D#12378D

#12378D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.1% C 0.149 H 263.3°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#12378D
RGBrgb(18, 55, 141)
HSLhsl(222, 77%, 31%)
HSVhsv(222, 87%, 55%)
CMYKcmyk(87.2%, 61%, 0%, 44.7%)
CIE-LABlab(26.11, 22.14, -51.13)
CIE-LCHlch(26.11, 55.72, 293.42°)
OKLaboklab(37.11% -0.0173 -0.1479)
OKLCHoklch(37.11% 0.149 263.3)
XYZxyz(6.4216, 4.7833, 25.7789)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12378D #8D6812
analogous
#12748D #12378D #2A128D
triadic
#12378D #8D1237 #378D12
tetradic
#12378D #8D1274 #8D6812 #128D2A
square
#12378D #8D1274 #8D6812 #128D2A
split-complementary
#12378D #8D2A12 #748D12
monochromatic
#040D20 #0B2257 #12378D #194CC3 #3469E5

Accessibility & contrast

On white

10.73
#12378D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12378D
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12378D#FFFFFF#000000##FFFFFF
##12378D1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #12378d;
/* rgb */ color: rgb(18, 55, 141);
/* oklch */ color: oklch(37.1% 0.149 263.3);
Tailwind
colors: {
  custom: {
    50: '#696daf',
    500: '#12378d',
    950: '#000000',
  },
}
SCSS
$custom: #12378d;
$custom-light: #696daf;
$custom-dark: #000000;
JSON
{
  "hex": "#12378d",
  "rgb": {
    "r": 18,
    "g": 55,
    "b": 141
  },
  "hsl": {
    "h": 221.951,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37107,
    "c": 0.14894,
    "h": 263.3
  },
  "luminance": 0.04784
}

Semantic roles & 50–950 ramp

primary
#12378D
secondary
#C19839
accent
#BA34F4
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #12378D

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

Preview Lab → · Contrast checker → · Palette generator →

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