#12317F#12317F

#12317F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.5% C 0.137 H 264.0°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#12317F
RGBrgb(18, 49, 127)
HSLhsl(223, 75%, 28%)
HSVhsv(223, 86%, 50%)
CMYKcmyk(85.8%, 61.4%, 0%, 50.2%)
CIE-LABlab(23.19, 20.60, -47.14)
CIE-LCHlch(23.19, 51.45, 293.61°)
OKLaboklab(34.54% -0.0143 -0.1363)
OKLCHoklch(34.54% 0.137 264)
XYZxyz(5.1772, 3.8569, 20.5462)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12317F #7F6012
analogous
#12677F #12317F #2A127F
triadic
#12317F #7F1231 #317F12
tetradic
#12317F #7F1267 #7F6012 #127F2A
square
#12317F #7F1267 #7F6012 #127F2A
split-complementary
#12317F #7F2A12 #677F12
monochromatic
#040A1B #0A1C49 #12317F #1A46B5 #2B5EE1

Accessibility & contrast

On white

11.85
#12317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#12317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12317F
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12317F#FFFFFF#000000##FFFFFF
##12317F1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #12317f;
/* rgb */ color: rgb(18, 49, 127);
/* oklch */ color: oklch(34.5% 0.137 264.0);
Tailwind
colors: {
  custom: {
    50: '#6668a5',
    500: '#12317f',
    950: '#000000',
  },
}
SCSS
$custom: #12317f;
$custom-light: #6668a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12317f",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 222.936,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34542,
    "c": 0.1371,
    "h": 264
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#12317F
secondary
#B59138
accent
#BC36F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #12317F

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

Preview Lab → · Contrast checker → · Palette generator →

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