#312CAC#312CAC

#312CAC is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.7% C 0.194 H 274.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#312CAC
RGBrgb(49, 44, 172)
HSLhsl(242, 59%, 42%)
HSVhsv(242, 74%, 67%)
CMYKcmyk(71.5%, 74.4%, 0%, 32.5%)
CIE-LABlab(27.93, 43.58, -66.97)
CIE-LCHlch(27.93, 79.90, 303.05°)
OKLaboklab(39.74% 0.0159 -0.1937)
OKLCHoklch(39.74% 0.194 274.7)
XYZxyz(9.6112, 5.4320, 39.5637)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CAC #A7AC2C
analogous
#2C67AC #312CAC #712CAC
triadic
#312CAC #AC312C #2CAC31
tetradic
#312CAC #AC2C67 #A7AC2C #2CAC71
square
#312CAC #AC2C67 #A7AC2C #2CAC71
split-complementary
#312CAC #AC712C #67AC2C
monochromatic
#15134B #23207B #312CAC #4B46D0 #7A76DC

Accessibility & contrast

On white

10.06
#312CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#312CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CAC
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CAC#FFFFFF#000000##FFFFFF
##312CAC1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B0
Deuteranopia (green-blind)
#003CAA
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #312cac;
/* rgb */ color: rgb(49, 44, 172);
/* oklch */ color: oklch(39.7% 0.194 274.7);
Tailwind
colors: {
  custom: {
    50: '#7c67c6',
    500: '#312cac',
    950: '#000000',
  },
}
SCSS
$custom: #312cac;
$custom-light: #7c67c6;
$custom-dark: #000000;
JSON
{
  "hex": "#312cac",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 242.344,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39739,
    "c": 0.19432,
    "h": 274.7
  },
  "luminance": 0.05433
}

Semantic roles & 50–950 ramp

primary
#312CAC
secondary
#C1C470
accent
#E245DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312CAC

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

Preview Lab → · Contrast checker → · Palette generator →

#312CAC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva