#12397B#12397B

#12397B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.0% C 0.121 H 260.4°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#12397B
RGBrgb(18, 57, 123)
HSLhsl(218, 74%, 28%)
HSVhsv(218, 85%, 48%)
CMYKcmyk(85.4%, 53.7%, 0%, 51.8%)
CIE-LABlab(25.21, 13.22, -41.33)
CIE-LCHlch(25.21, 43.40, 287.74°)
OKLaboklab(35.97% -0.0202 -0.1191)
OKLCHoklch(35.97% 0.121 260.4)
XYZxyz(5.2864, 4.4843, 19.3220)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12397B #7B5412
analogous
#126E7B #12397B #1F127B
triadic
#12397B #7B1239 #397B12
tetradic
#12397B #7B126E #7B5412 #127B1F
square
#12397B #7B126E #7B5412 #127B1F
split-complementary
#12397B #7B1F12 #6E7B12
monochromatic
#040C1B #0A2046 #12397B #1A52B0 #286CE0

Accessibility & contrast

On white

11.07
#12397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#12397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12397B
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12397B#FFFFFF#000000##FFFFFF
##12397B1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B417D
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #12397b;
/* rgb */ color: rgb(18, 57, 123);
/* oklch */ color: oklch(36.0% 0.121 260.4);
Tailwind
colors: {
  custom: {
    50: '#646ea2',
    500: '#12397b',
    950: '#000000',
  },
}
SCSS
$custom: #12397b;
$custom-light: #646ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#12397b",
  "rgb": {
    "r": 18,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 217.714,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35966,
    "c": 0.12083,
    "h": 260.4
  },
  "luminance": 0.04485
}

Semantic roles & 50–950 ramp

primary
#12397B
secondary
#B18438
accent
#AC37F1
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #12397B

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

Preview Lab → · Contrast checker → · Palette generator →

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