#312CA4#312CA4

#312CA4 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.184 H 275.4°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#312CA4
RGBrgb(49, 44, 164)
HSLhsl(243, 58%, 41%)
HSVhsv(243, 73%, 64%)
CMYKcmyk(70.1%, 73.2%, 0%, 35.7%)
CIE-LABlab(27.11, 40.93, -63.50)
CIE-LCHlch(27.11, 75.55, 302.80°)
OKLaboklab(38.91% 0.0174 -0.1835)
OKLCHoklch(38.91% 0.184 275.4)
XYZxyz(8.8659, 5.1338, 35.6385)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CA4 #9FA42C
analogous
#2C63A4 #312CA4 #6D2CA4
triadic
#312CA4 #A4312C #2CA431
tetradic
#312CA4 #A42C63 #9FA42C #2CA46D
square
#312CA4 #A42C63 #9FA42C #2CA46D
split-complementary
#312CA4 #A46D2C #63A42C
monochromatic
#141243 #231F74 #312CA4 #4741CC #7671D9

Accessibility & contrast

On white

10.36
#312CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#312CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CA4
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CA4#FFFFFF#000000##FFFFFF
##312CA41.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003BA2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #312ca4;
/* rgb */ color: rgb(49, 44, 164);
/* oklch */ color: oklch(38.9% 0.184 275.4);
Tailwind
colors: {
  custom: {
    50: '#7a67c0',
    500: '#312ca4',
    950: '#000000',
  },
}
SCSS
$custom: #312ca4;
$custom-light: #7a67c0;
$custom-dark: #000000;
JSON
{
  "hex": "#312ca4",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 242.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38912,
    "c": 0.18436,
    "h": 275.4
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#312CA4
secondary
#BDC06B
accent
#E147DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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