#12397A#12397A

#12397A is a dark, moderate blue. Relative luminance 0.045; OKLCH L 35.9% C 0.119 H 260.2°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#12397A
RGBrgb(18, 57, 122)
HSLhsl(218, 74%, 27%)
HSVhsv(218, 85%, 48%)
CMYKcmyk(85.2%, 53.3%, 0%, 52.2%)
CIE-LABlab(25.14, 12.80, -40.83)
CIE-LCHlch(25.14, 42.79, 287.41°)
OKLaboklab(35.88% -0.0203 -0.1176)
OKLCHoklch(35.88% 0.119 260.2)
XYZxyz(5.2242, 4.4594, 18.9940)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12397A #7A5312
analogous
#126D7A #12397A #1F127A
triadic
#12397A #7A1239 #397A12
tetradic
#12397A #7A126D #7A5312 #127A1F
square
#12397A #7A126D #7A5312 #127A1F
split-complementary
#12397A #7A1F12 #6D7A12
monochromatic
#040C1B #0A2045 #12397A #1A52AF #276CDF

Accessibility & contrast

On white

11.10
#12397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#12397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12397A
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12397A#FFFFFF#000000##FFFFFF
##12397A1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D417C
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#004953
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #12397a;
/* rgb */ color: rgb(18, 57, 122);
/* oklch */ color: oklch(35.9% 0.119 260.2);
Tailwind
colors: {
  custom: {
    50: '#646ea1',
    500: '#12397a',
    950: '#000000',
  },
}
SCSS
$custom: #12397a;
$custom-light: #646ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#12397a",
  "rgb": {
    "r": 18,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 217.5,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35883,
    "c": 0.11938,
    "h": 260.2
  },
  "luminance": 0.0446
}

Semantic roles & 50–950 ramp

primary
#12397A
secondary
#B08338
accent
#AB37F1
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #12397A

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

Preview Lab → · Contrast checker → · Palette generator →

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