#12388D#12388D

#12388D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.3% C 0.148 H 263.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#12388D
RGBrgb(18, 56, 141)
HSLhsl(221, 77%, 31%)
HSVhsv(221, 87%, 55%)
CMYKcmyk(87.2%, 60.3%, 0%, 44.7%)
CIE-LABlab(26.39, 21.44, -50.67)
CIE-LCHlch(26.39, 55.02, 292.94°)
OKLaboklab(37.32% -0.0179 -0.1466)
OKLCHoklch(37.32% 0.148 263)
XYZxyz(6.4696, 4.8792, 25.7949)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12388D #8D6712
analogous
#12758D #12388D #29128D
triadic
#12388D #8D1238 #388D12
tetradic
#12388D #8D1275 #8D6712 #128D29
square
#12388D #8D1275 #8D6712 #128D29
split-complementary
#12388D #8D2912 #758D12
monochromatic
#040D20 #0B2257 #12388D #194EC3 #346BE5

Accessibility & contrast

On white

10.63
#12388D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12388D
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12388D#FFFFFF#000000##FFFFFF
##12388D1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12388d;
/* rgb */ color: rgb(18, 56, 141);
/* oklch */ color: oklch(37.3% 0.148 263.0);
Tailwind
colors: {
  custom: {
    50: '#696eaf',
    500: '#12388d',
    950: '#000000',
  },
}
SCSS
$custom: #12388d;
$custom-light: #696eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#12388d",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 141
  },
  "hsl": {
    "h": 221.463,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37317,
    "c": 0.14767,
    "h": 263
  },
  "luminance": 0.0488
}

Semantic roles & 50–950 ramp

primary
#12388D
secondary
#C19739
accent
#B934F4
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #12388D

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

Preview Lab → · Contrast checker → · Palette generator →

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