#12397C#12397C

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

Color values

HEX#12397C
RGBrgb(18, 57, 124)
HSLhsl(218, 75%, 28%)
HSVhsv(218, 85%, 49%)
CMYKcmyk(85.5%, 54%, 0%, 51.4%)
CIE-LABlab(25.29, 13.64, -41.84)
CIE-LCHlch(25.29, 44.01, 288.06°)
OKLaboklab(36.05% -0.0201 -0.1206)
OKLCHoklch(36.05% 0.122 260.6)
XYZxyz(5.3493, 4.5094, 19.6533)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12397C #7C5512
analogous
#126E7C #12397C #20127C
triadic
#12397C #7C1239 #397C12
tetradic
#12397C #7C126E #7C5512 #127C20
square
#12397C #7C126E #7C5512 #127C20
split-complementary
#12397C #7C2012 #6E7C12
monochromatic
#040C1B #0A2047 #12397C #1A52B1 #296CE0

Accessibility & contrast

On white

11.04
#12397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12397C
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12397C#FFFFFF#000000##FFFFFF
##12397C1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09417E
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #12397c;
/* rgb */ color: rgb(18, 57, 124);
/* oklch */ color: oklch(36.0% 0.122 260.6);
Tailwind
colors: {
  custom: {
    50: '#646ea2',
    500: '#12397c',
    950: '#000000',
  },
}
SCSS
$custom: #12397c;
$custom-light: #646ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#12397c",
  "rgb": {
    "r": 18,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 217.925,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36049,
    "c": 0.12228,
    "h": 260.6
  },
  "luminance": 0.0451
}

Semantic roles & 50–950 ramp

primary
#12397C
secondary
#B28538
accent
#AD37F1
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#06070F
muted
#7A7A7F

Preview Lab

Preview with #12397C

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

Preview Lab → · Contrast checker → · Palette generator →

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