#12398E#12398E

#12398E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.6% C 0.148 H 262.8°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#12398E
RGBrgb(18, 57, 142)
HSLhsl(221, 78%, 31%)
HSVhsv(221, 87%, 56%)
CMYKcmyk(87.3%, 59.9%, 0%, 44.3%)
CIE-LABlab(26.75, 21.16, -50.69)
CIE-LCHlch(26.75, 54.93, 292.65°)
OKLaboklab(37.62% -0.0184 -0.1466)
OKLCHoklch(37.62% 0.148 262.8)
XYZxyz(6.5933, 5.0070, 26.2049)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12398E #8E6712
analogous
#12778E #12398E #29128E
triadic
#12398E #8E1239 #398E12
tetradic
#12398E #8E1277 #8E6712 #128E29
square
#12398E #8E1277 #8E6712 #128E29
split-complementary
#12398E #8E2912 #778E12
monochromatic
#040D21 #0B2358 #12398E #194FC4 #356CE5

Accessibility & contrast

On white

10.49
#12398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#12398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12398E
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12398E#FFFFFF#000000##FFFFFF
##12398E1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #12398e;
/* rgb */ color: rgb(18, 57, 142);
/* oklch */ color: oklch(37.6% 0.148 262.8);
Tailwind
colors: {
  custom: {
    50: '#696eb0',
    500: '#12398e',
    950: '#000000',
  },
}
SCSS
$custom: #12398e;
$custom-light: #696eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#12398e",
  "rgb": {
    "r": 18,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 221.129,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37619,
    "c": 0.14778,
    "h": 262.8
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#12398E
secondary
#C2973A
accent
#B834F4
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #12398E

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

Preview Lab → · Contrast checker → · Palette generator →

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