#12397E#12397E

#12397E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.2% C 0.125 H 260.9°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#12397E
RGBrgb(18, 57, 126)
HSLhsl(218, 75%, 28%)
HSVhsv(218, 86%, 49%)
CMYKcmyk(85.7%, 54.8%, 0%, 50.6%)
CIE-LABlab(25.44, 14.49, -42.85)
CIE-LCHlch(25.44, 45.23, 288.68°)
OKLaboklab(36.22% -0.0198 -0.1236)
OKLCHoklch(36.22% 0.125 260.9)
XYZxyz(5.4771, 4.5605, 20.3262)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12397E #7E5712
analogous
#126F7E #12397E #21127E
triadic
#12397E #7E1239 #397E12
tetradic
#12397E #7E126F #7E5712 #127E21
square
#12397E #7E126F #7E5712 #127E21
split-complementary
#12397E #7E2112 #6F7E12
monochromatic
#040C1B #0A2148 #12397E #1A51B4 #2A6CE1

Accessibility & contrast

On white

10.98
#12397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#12397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12397E
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12397E#FFFFFF#000000##FFFFFF
##12397E1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044180
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #12397e;
/* rgb */ color: rgb(18, 57, 126);
/* oklch */ color: oklch(36.2% 0.125 260.9);
Tailwind
colors: {
  custom: {
    50: '#656ea4',
    500: '#12397e',
    950: '#000000',
  },
}
SCSS
$custom: #12397e;
$custom-light: #656ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#12397e",
  "rgb": {
    "r": 18,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 218.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36216,
    "c": 0.12516,
    "h": 260.9
  },
  "luminance": 0.04561
}

Semantic roles & 50–950 ramp

primary
#12397E
secondary
#B48738
accent
#AE36F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #12397E

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

Preview Lab → · Contrast checker → · Palette generator →

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