#12398D#12398D

#12398D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.5% C 0.146 H 262.7°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#12398D
RGBrgb(18, 57, 141)
HSLhsl(221, 77%, 31%)
HSVhsv(221, 87%, 55%)
CMYKcmyk(87.2%, 59.6%, 0%, 44.7%)
CIE-LABlab(26.67, 20.74, -50.21)
CIE-LCHlch(26.67, 54.33, 292.45°)
OKLaboklab(37.53% -0.0185 -0.1452)
OKLCHoklch(37.53% 0.146 262.7)
XYZxyz(6.5186, 4.9771, 25.8113)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12398D #8D6612
analogous
#12768D #12398D #29128D
triadic
#12398D #8D1239 #398D12
tetradic
#12398D #8D1276 #8D6612 #128D29
square
#12398D #8D1276 #8D6612 #128D29
split-complementary
#12398D #8D2912 #768D12
monochromatic
#040D20 #0B2357 #12398D #194FC3 #346CE5

Accessibility & contrast

On white

10.52
#12398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12398D
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12398D#FFFFFF#000000##FFFFFF
##12398D1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #12398d;
/* rgb */ color: rgb(18, 57, 141);
/* oklch */ color: oklch(37.5% 0.146 262.7);
Tailwind
colors: {
  custom: {
    50: '#696eaf',
    500: '#12398d',
    950: '#000000',
  },
}
SCSS
$custom: #12398d;
$custom-light: #696eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#12398d",
  "rgb": {
    "r": 18,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 220.976,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37528,
    "c": 0.14638,
    "h": 262.7
  },
  "luminance": 0.04978
}

Semantic roles & 50–950 ramp

primary
#12398D
secondary
#C19639
accent
#B734F4
background
#F6F6FA
surface
#ECEBF5
border
#C7C6CF
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #12398D

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

Preview Lab → · Contrast checker → · Palette generator →

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