#12398F#12398F

#12398F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.149 H 262.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#12398F
RGBrgb(18, 57, 143)
HSLhsl(221, 78%, 32%)
HSVhsv(221, 87%, 56%)
CMYKcmyk(87.4%, 60.1%, 0%, 43.9%)
CIE-LABlab(26.84, 21.57, -51.17)
CIE-LCHlch(26.84, 55.53, 292.85°)
OKLaboklab(37.71% -0.0184 -0.148)
OKLCHoklch(37.71% 0.149 262.9)
XYZxyz(6.6687, 5.0372, 26.6021)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12398F #8F6812
analogous
#12788F #12398F #2A128F
triadic
#12398F #8F1239 #398F12
tetradic
#12398F #8F1278 #8F6812 #128F2A
square
#12398F #8F1278 #8F6812 #128F2A
split-complementary
#12398F #8F2A12 #788F12
monochromatic
#040E22 #0B2359 #12398F #194FC5 #366DE6

Accessibility & contrast

On white

10.46
#12398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#12398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12398F
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12398F#FFFFFF#000000##FFFFFF
##12398F1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #12398f;
/* rgb */ color: rgb(18, 57, 143);
/* oklch */ color: oklch(37.7% 0.149 262.9);
Tailwind
colors: {
  custom: {
    50: '#6a6eb1',
    500: '#12398f',
    950: '#000000',
  },
}
SCSS
$custom: #12398f;
$custom-light: #6a6eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#12398f",
  "rgb": {
    "r": 18,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 221.28,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3771,
    "c": 0.14916,
    "h": 262.9
  },
  "luminance": 0.05038
}

Semantic roles & 50–950 ramp

primary
#12398F
secondary
#C3983A
accent
#B834F4
background
#F6F6FB
surface
#ECEBF6
border
#C7C6D0
text
#080711
muted
#7A7A80

Preview Lab

Preview with #12398F

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

Preview Lab → · Contrast checker → · Palette generator →

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