#12388F#12388F

#12388F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.5% C 0.150 H 263.2°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#12388F
RGBrgb(18, 56, 143)
HSLhsl(222, 78%, 32%)
HSVhsv(222, 87%, 56%)
CMYKcmyk(87.4%, 60.8%, 0%, 43.9%)
CIE-LABlab(26.56, 22.26, -51.62)
CIE-LCHlch(26.56, 56.22, 293.33°)
OKLaboklab(37.5% -0.0178 -0.1494)
OKLCHoklch(37.5% 0.15 263.2)
XYZxyz(6.6198, 4.9393, 26.5858)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12388F #8F6912
analogous
#12778F #12388F #2B128F
triadic
#12388F #8F1238 #388F12
tetradic
#12388F #8F1277 #8F6912 #128F2B
square
#12388F #8F1277 #8F6912 #128F2B
split-complementary
#12388F #8F2B12 #778F12
monochromatic
#040D22 #0B2359 #12388F #194DC5 #366BE6

Accessibility & contrast

On white

10.56
#12388F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#12388F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12388F
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12388F#FFFFFF#000000##FFFFFF
##12388F1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #12388f;
/* rgb */ color: rgb(18, 56, 143);
/* oklch */ color: oklch(37.5% 0.150 263.2);
Tailwind
colors: {
  custom: {
    50: '#6a6eb1',
    500: '#12388f',
    950: '#000000',
  },
}
SCSS
$custom: #12388f;
$custom-light: #6a6eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#12388f",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 143
  },
  "hsl": {
    "h": 221.76,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.375,
    "c": 0.15043,
    "h": 263.2
  },
  "luminance": 0.0494
}

Semantic roles & 50–950 ramp

primary
#12388F
secondary
#C3993A
accent
#BA34F4
background
#F6F6FB
surface
#ECEBF6
border
#C7C6D0
text
#080711
muted
#7A7A80

Preview Lab

Preview with #12388F

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

Preview Lab → · Contrast checker → · Palette generator →

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