#12397F#12397F

#12397F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.3% C 0.127 H 261.0°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#12397F
RGBrgb(18, 57, 127)
HSLhsl(219, 75%, 28%)
HSVhsv(219, 86%, 50%)
CMYKcmyk(85.8%, 55.1%, 0%, 50.2%)
CIE-LABlab(25.52, 14.91, -43.35)
CIE-LCHlch(25.52, 45.84, 288.98°)
OKLaboklab(36.3% -0.0197 -0.125)
OKLCHoklch(36.3% 0.127 261)
XYZxyz(5.5420, 4.5865, 20.6677)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12397F #7F5812
analogous
#126F7F #12397F #21127F
triadic
#12397F #7F1239 #397F12
tetradic
#12397F #7F126F #7F5812 #127F21
square
#12397F #7F126F #7F5812 #127F21
split-complementary
#12397F #7F2112 #6F7F12
monochromatic
#040C1B #0A2149 #12397F #1A51B5 #2B6CE1

Accessibility & contrast

On white

10.95
#12397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#12397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12397F
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12397F#FFFFFF#000000##FFFFFF
##12397F1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024281
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #12397f;
/* rgb */ color: rgb(18, 57, 127);
/* oklch */ color: oklch(36.3% 0.127 261.0);
Tailwind
colors: {
  custom: {
    50: '#656ea5',
    500: '#12397f',
    950: '#000000',
  },
}
SCSS
$custom: #12397f;
$custom-light: #656ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#12397f",
  "rgb": {
    "r": 18,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 218.532,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36301,
    "c": 0.12659,
    "h": 261
  },
  "luminance": 0.04587
}

Semantic roles & 50–950 ramp

primary
#12397F
secondary
#B58838
accent
#AF36F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #12397F

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

Preview Lab → · Contrast checker → · Palette generator →

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