#12388E#12388E

#12388E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.4% C 0.149 H 263.1°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#12388E
RGBrgb(18, 56, 142)
HSLhsl(222, 78%, 31%)
HSVhsv(222, 87%, 56%)
CMYKcmyk(87.3%, 60.6%, 0%, 44.3%)
CIE-LABlab(26.47, 21.86, -51.15)
CIE-LCHlch(26.47, 55.62, 293.14°)
OKLaboklab(37.41% -0.0178 -0.148)
OKLCHoklch(37.41% 0.149 263.1)
XYZxyz(6.5444, 4.9091, 26.1886)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12388E #8E6812
analogous
#12768E #12388E #2A128E
triadic
#12388E #8E1238 #388E12
tetradic
#12388E #8E1276 #8E6812 #128E2A
square
#12388E #8E1276 #8E6812 #128E2A
split-complementary
#12388E #8E2A12 #768E12
monochromatic
#040D21 #0B2358 #12388E #194DC4 #356BE5

Accessibility & contrast

On white

10.60
#12388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#12388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12388E
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12388E#FFFFFF#000000##FFFFFF
##12388E1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #12388e;
/* rgb */ color: rgb(18, 56, 142);
/* oklch */ color: oklch(37.4% 0.149 263.1);
Tailwind
colors: {
  custom: {
    50: '#696eb0',
    500: '#12388e',
    950: '#000000',
  },
}
SCSS
$custom: #12388e;
$custom-light: #696eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#12388e",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 221.613,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37408,
    "c": 0.14905,
    "h": 263.1
  },
  "luminance": 0.0491
}

Semantic roles & 50–950 ramp

primary
#12388E
secondary
#C2983A
accent
#B934F4
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#080711
muted
#7A7A80

Preview Lab

Preview with #12388E

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

Preview Lab → · Contrast checker → · Palette generator →

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