#12315E#12315E

#12315E is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.7% C 0.088 H 258.1°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#12315E
RGBrgb(18, 49, 94)
HSLhsl(216, 68%, 22%)
HSVhsv(216, 81%, 37%)
CMYKcmyk(80.9%, 47.9%, 0%, 63.1%)
CIE-LABlab(20.57, 6.59, -30.14)
CIE-LCHlch(20.57, 30.85, 282.34°)
OKLaboklab(31.72% -0.0182 -0.0864)
OKLCHoklch(31.72% 0.088 258.1)
XYZxyz(3.3674, 3.1330, 11.0148)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12315E #5E3F12
analogous
#12575E #12315E #19125E
triadic
#12315E #5E1231 #315E12
tetradic
#12315E #5E1257 #5E3F12 #125E19
square
#12315E #5E1257 #5E3F12 #125E19
split-complementary
#12315E #5E1912 #575E12
monochromatic
#050D1A #08162B #12315E #1C4C91 #2667C5

Accessibility & contrast

On white

12.91
#12315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#12315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12315E
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12315E#FFFFFF#000000##FFFFFF
##12315E1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3560
Deuteranopia (green-blind)
#0A2E5D
Tritanopia (blue-blind)
#003C42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #12315e;
/* rgb */ color: rgb(18, 49, 94);
/* oklch */ color: oklch(31.7% 0.088 258.1);
Tailwind
colors: {
  custom: {
    50: '#5c688c',
    500: '#12315e',
    950: '#000000',
  },
}
SCSS
$custom: #12315e;
$custom-light: #5c688c;
$custom-dark: #000000;
JSON
{
  "hex": "#12315e",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 215.526,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31719,
    "c": 0.08826,
    "h": 258.1
  },
  "luminance": 0.03133
}

Semantic roles & 50–950 ramp

primary
#12315E
secondary
#966F35
accent
#A43DEB
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #12315E

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

Preview Lab → · Contrast checker → · Palette generator →

#12315E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva