#12316C#12316C

#12316C is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.8% C 0.109 H 261.7°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#12316C
RGBrgb(18, 49, 108)
HSLhsl(219, 71%, 25%)
HSVhsv(219, 83%, 42%)
CMYKcmyk(83.3%, 54.6%, 0%, 57.6%)
CIE-LABlab(21.61, 12.59, -37.59)
CIE-LCHlch(21.61, 39.65, 288.52°)
OKLaboklab(32.85% -0.0159 -0.1083)
OKLCHoklch(32.85% 0.109 261.7)
XYZxyz(4.0536, 3.4075, 14.6285)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12316C #6C4D12
analogous
#125E6C #12316C #20126C
triadic
#12316C #6C1231 #316C12
tetradic
#12316C #6C125E #6C4D12 #126C20
square
#12316C #6C125E #6C4D12 #126C20
split-complementary
#12316C #6C2012 #5E6C12
monochromatic
#040C1A #091938 #12316C #1B49A0 #2361D5

Accessibility & contrast

On white

12.49
#12316C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#12316C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12316C
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12316C#FFFFFF#000000##FFFFFF
##12316C1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08386E
Deuteranopia (green-blind)
#00306B
Tritanopia (blue-blind)
#003F49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #12316c;
/* rgb */ color: rgb(18, 49, 108);
/* oklch */ color: oklch(32.8% 0.109 261.7);
Tailwind
colors: {
  custom: {
    50: '#606897',
    500: '#12316c',
    950: '#000000',
  },
}
SCSS
$custom: #12316c;
$custom-light: #606897;
$custom-dark: #000000;
JSON
{
  "hex": "#12316c",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 108
  },
  "hsl": {
    "h": 219.333,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.32847,
    "c": 0.10945,
    "h": 261.7
  },
  "luminance": 0.03408
}

Semantic roles & 50–950 ramp

primary
#12316C
secondary
#A37E36
accent
#B03AEE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#05060D
muted
#7A7A7E

Preview Lab

Preview with #12316C

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

Preview Lab → · Contrast checker → · Palette generator →

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