#312CA1#312CA1

#312CA1 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.181 H 275.7°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#312CA1
RGBrgb(49, 44, 161)
HSLhsl(243, 57%, 40%)
HSVhsv(243, 73%, 63%)
CMYKcmyk(69.6%, 72.7%, 0%, 36.9%)
CIE-LABlab(26.81, 39.92, -62.18)
CIE-LCHlch(26.81, 73.89, 302.70°)
OKLaboklab(38.61% 0.0179 -0.1797)
OKLCHoklch(38.61% 0.181 275.7)
XYZxyz(8.5982, 5.0268, 34.2284)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CA1 #9CA12C
analogous
#2C62A1 #312CA1 #6B2CA1
triadic
#312CA1 #A1312C #2CA131
tetradic
#312CA1 #A12C62 #9CA12C #2CA16B
square
#312CA1 #A12C62 #9CA12C #2CA16B
split-complementary
#312CA1 #A16B2C #62A12C
monochromatic
#141241 #221F71 #312CA1 #4540CB #7470D8

Accessibility & contrast

On white

10.47
#312CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#312CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CA1
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CA1#FFFFFF#000000##FFFFFF
##312CA11.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #312ca1;
/* rgb */ color: rgb(49, 44, 161);
/* oklch */ color: oklch(38.6% 0.181 275.7);
Tailwind
colors: {
  custom: {
    50: '#7966be',
    500: '#312ca1',
    950: '#000000',
  },
}
SCSS
$custom: #312ca1;
$custom-light: #7966be;
$custom-dark: #000000;
JSON
{
  "hex": "#312ca1",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 242.564,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38606,
    "c": 0.18058,
    "h": 275.7
  },
  "luminance": 0.05028
}

Semantic roles & 50–950 ramp

primary
#312CA1
secondary
#BBBF6A
accent
#E047DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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