#312CAB#312CAB

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

Color values

HEX#312CAB
RGBrgb(49, 44, 171)
HSLhsl(242, 59%, 42%)
HSVhsv(242, 74%, 67%)
CMYKcmyk(71.3%, 74.3%, 0%, 32.9%)
CIE-LABlab(27.83, 43.25, -66.54)
CIE-LCHlch(27.83, 79.36, 303.02°)
OKLaboklab(39.64% 0.0161 -0.1924)
OKLCHoklch(39.64% 0.193 274.8)
XYZxyz(9.5156, 5.3937, 39.0598)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CAB #A6AB2C
analogous
#2C67AB #312CAB #702CAB
triadic
#312CAB #AB312C #2CAB31
tetradic
#312CAB #AB2C67 #A6AB2C #2CAB70
square
#312CAB #AB2C67 #A6AB2C #2CAB70
split-complementary
#312CAB #AB702C #67AB2C
monochromatic
#15134A #231F7A #312CAB #4A45CF #7A76DC

Accessibility & contrast

On white

10.10
#312CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#312CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CAB
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CAB#FFFFFF#000000##FFFFFF
##312CAB1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003CA9
Tritanopia (blue-blind)
#005069
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #312cab;
/* rgb */ color: rgb(49, 44, 171);
/* oklch */ color: oklch(39.6% 0.193 274.8);
Tailwind
colors: {
  custom: {
    50: '#7c67c5',
    500: '#312cab',
    950: '#000000',
  },
}
SCSS
$custom: #312cab;
$custom-light: #7c67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#312cab",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 242.362,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39635,
    "c": 0.19309,
    "h": 274.8
  },
  "luminance": 0.05395
}

Semantic roles & 50–950 ramp

primary
#312CAB
secondary
#C0C36F
accent
#E246DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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