#312BAC#312BAC

#312BAC is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.195 H 274.8°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#312BAC
RGBrgb(49, 43, 172)
HSLhsl(243, 60%, 42%)
HSVhsv(243, 75%, 67%)
CMYKcmyk(71.5%, 75%, 0%, 32.5%)
CIE-LABlab(27.73, 44.14, -67.30)
CIE-LCHlch(27.73, 80.49, 303.26°)
OKLaboklab(39.6% 0.0164 -0.1946)
OKLCHoklch(39.6% 0.195 274.8)
XYZxyz(9.5744, 5.3584, 39.5514)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BAC #A6AC2B
analogous
#2B65AC #312BAC #722BAC
triadic
#312BAC #AC312B #2BAC31
tetradic
#312BAC #AC2B65 #A6AC2B #2BAC72
square
#312BAC #AC2B65 #A6AC2B #2BAC72
split-complementary
#312BAC #AC722B #65AC2B
monochromatic
#15134A #231F7B #312BAC #4A44D0 #7A75DC

Accessibility & contrast

On white

10.14
#312BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#312BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BAC
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BAC#FFFFFF#000000##FFFFFF
##312BAC1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B0
Deuteranopia (green-blind)
#003BAA
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312bac;
/* rgb */ color: rgb(49, 43, 172);
/* oklch */ color: oklch(39.6% 0.195 274.8);
Tailwind
colors: {
  custom: {
    50: '#7c66c6',
    500: '#312bac',
    950: '#000000',
  },
}
SCSS
$custom: #312bac;
$custom-light: #7c66c6;
$custom-dark: #000000;
JSON
{
  "hex": "#312bac",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 242.791,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39598,
    "c": 0.19531,
    "h": 274.8
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

primary
#312BAC
secondary
#C0C46F
accent
#E345DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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