#312CA2#312CA2

#312CA2 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.182 H 275.6°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#312CA2
RGBrgb(49, 44, 162)
HSLhsl(243, 57%, 40%)
HSVhsv(243, 73%, 64%)
CMYKcmyk(69.8%, 72.8%, 0%, 36.5%)
CIE-LABlab(26.91, 40.26, -62.62)
CIE-LCHlch(26.91, 74.44, 302.74°)
OKLaboklab(38.71% 0.0177 -0.181)
OKLCHoklch(38.71% 0.182 275.6)
XYZxyz(8.6867, 5.0622, 34.6947)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CA2 #9DA22C
analogous
#2C62A2 #312CA2 #6C2CA2
triadic
#312CA2 #A2312C #2CA231
tetradic
#312CA2 #A22C62 #9DA22C #2CA26C
square
#312CA2 #A22C62 #9DA22C #2CA26C
split-complementary
#312CA2 #A26C2C #62A22C
monochromatic
#141242 #221F72 #312CA2 #4640CB #7570D8

Accessibility & contrast

On white

10.43
#312CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312CA2
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CA2#FFFFFF#000000##FFFFFF
##312CA21.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #312ca2;
/* rgb */ color: rgb(49, 44, 162);
/* oklch */ color: oklch(38.7% 0.182 275.6);
Tailwind
colors: {
  custom: {
    50: '#7a67bf',
    500: '#312ca2',
    950: '#000000',
  },
}
SCSS
$custom: #312ca2;
$custom-light: #7a67bf;
$custom-dark: #000000;
JSON
{
  "hex": "#312ca2",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 242.542,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38707,
    "c": 0.18185,
    "h": 275.6
  },
  "luminance": 0.05063
}

Semantic roles & 50–950 ramp

primary
#312CA2
secondary
#BCBF6A
accent
#E147DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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