#12388A#12388A

#12388A is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.0% C 0.143 H 262.8°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#12388A
RGBrgb(18, 56, 138)
HSLhsl(221, 77%, 31%)
HSVhsv(221, 87%, 54%)
CMYKcmyk(87%, 59.4%, 0%, 45.9%)
CIE-LABlab(26.13, 20.21, -49.23)
CIE-LCHlch(26.13, 53.22, 292.32°)
OKLaboklab(37.04% -0.0181 -0.1423)
OKLCHoklch(37.04% 0.143 262.8)
XYZxyz(6.2494, 4.7911, 24.6352)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12388A #8A6412
analogous
#12748A #12388A #28128A
triadic
#12388A #8A1238 #388A12
tetradic
#12388A #8A1274 #8A6412 #128A28
square
#12388A #8A1274 #8A6412 #128A28
split-complementary
#12388A #8A2812 #748A12
monochromatic
#040C1E #0B2254 #12388A #194EC0 #326BE4

Accessibility & contrast

On white

10.72
#12388A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#12388A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12388A
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12388A#FFFFFF#000000##FFFFFF
##12388A1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #12388a;
/* rgb */ color: rgb(18, 56, 138);
/* oklch */ color: oklch(37.0% 0.143 262.8);
Tailwind
colors: {
  custom: {
    50: '#686ead',
    500: '#12388a',
    950: '#000000',
  },
}
SCSS
$custom: #12388a;
$custom-light: #686ead;
$custom-dark: #000000;
JSON
{
  "hex": "#12388a",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 138
  },
  "hsl": {
    "h": 221,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37044,
    "c": 0.14349,
    "h": 262.8
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#12388A
secondary
#BF9439
accent
#B734F3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #12388A

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

Preview Lab → · Contrast checker → · Palette generator →

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