#312CA3#312CA3

#312CA3 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.183 H 275.5°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#312CA3
RGBrgb(49, 44, 163)
HSLhsl(243, 57%, 41%)
HSVhsv(243, 73%, 64%)
CMYKcmyk(69.9%, 73%, 0%, 36.1%)
CIE-LABlab(27.01, 40.59, -63.06)
CIE-LCHlch(27.01, 75.00, 302.77°)
OKLaboklab(38.81% 0.0176 -0.1823)
OKLCHoklch(38.81% 0.183 275.5)
XYZxyz(8.7760, 5.0979, 35.1647)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CA3 #9EA32C
analogous
#2C62A3 #312CA3 #6C2CA3
triadic
#312CA3 #A3312C #2CA331
tetradic
#312CA3 #A32C62 #9EA32C #2CA36C
square
#312CA3 #A32C62 #9EA32C #2CA36C
split-complementary
#312CA3 #A36C2C #62A32C
monochromatic
#141243 #231F73 #312CA3 #4641CC #7571D9

Accessibility & contrast

On white

10.40
#312CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#312CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CA3
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CA3#FFFFFF#000000##FFFFFF
##312CA31.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003AA1
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #312ca3;
/* rgb */ color: rgb(49, 44, 163);
/* oklch */ color: oklch(38.8% 0.183 275.5);
Tailwind
colors: {
  custom: {
    50: '#7a67bf',
    500: '#312ca3',
    950: '#000000',
  },
}
SCSS
$custom: #312ca3;
$custom-light: #7a67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#312ca3",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 242.521,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38809,
    "c": 0.1831,
    "h": 275.5
  },
  "luminance": 0.05099
}

Semantic roles & 50–950 ramp

primary
#312CA3
secondary
#BCC06B
accent
#E147DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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