#12315F#12315F

#12315F is a dark, moderate blue. Relative luminance 0.032; OKLCH L 31.8% C 0.090 H 258.4°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#12315F
RGBrgb(18, 49, 95)
HSLhsl(216, 68%, 22%)
HSVhsv(216, 81%, 37%)
CMYKcmyk(81.1%, 48.4%, 0%, 62.7%)
CIE-LABlab(20.64, 7.02, -30.68)
CIE-LCHlch(20.64, 31.48, 282.89°)
OKLaboklab(31.8% -0.018 -0.088)
OKLCHoklch(31.8% 0.09 258.4)
XYZxyz(3.4126, 3.1511, 11.2526)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12315F #5F4012
analogous
#12585F #12315F #19125F
triadic
#12315F #5F1231 #315F12
tetradic
#12315F #5F1258 #5F4012 #125F19
square
#12315F #5F1258 #5F4012 #125F19
split-complementary
#12315F #5F1912 #585F12
monochromatic
#050D1A #08162C #12315F #1C4C92 #2566C6

Accessibility & contrast

On white

12.88
#12315F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12315F
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12315F#FFFFFF#000000##FFFFFF
##12315F1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193561
Deuteranopia (green-blind)
#082E5E
Tritanopia (blue-blind)
#003C43
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #12315f;
/* rgb */ color: rgb(18, 49, 95);
/* oklch */ color: oklch(31.8% 0.090 258.4);
Tailwind
colors: {
  custom: {
    50: '#5d688d',
    500: '#12315f',
    950: '#000000',
  },
}
SCSS
$custom: #12315f;
$custom-light: #5d688d;
$custom-dark: #000000;
JSON
{
  "hex": "#12315f",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 95
  },
  "hsl": {
    "h": 215.844,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31795,
    "c": 0.08979,
    "h": 258.4
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#12315F
secondary
#977036
accent
#A53DEB
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #12315F

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

Preview Lab → · Contrast checker → · Palette generator →

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