#312CA5#312CA5

#312CA5 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.0% C 0.186 H 275.3°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#312CA5
RGBrgb(49, 44, 165)
HSLhsl(242, 58%, 41%)
HSVhsv(242, 73%, 65%)
CMYKcmyk(70.3%, 73.3%, 0%, 35.3%)
CIE-LABlab(27.21, 41.26, -63.94)
CIE-LCHlch(27.21, 76.10, 302.84°)
OKLaboklab(39.01% 0.0172 -0.1848)
OKLCHoklch(39.01% 0.186 275.3)
XYZxyz(8.9566, 5.1701, 36.1159)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CA5 #A0A52C
analogous
#2C63A5 #312CA5 #6D2CA5
triadic
#312CA5 #A5312C #2CA531
tetradic
#312CA5 #A52C63 #A0A52C #2CA56D
square
#312CA5 #A52C63 #A0A52C #2CA56D
split-complementary
#312CA5 #A56D2C #63A52C
monochromatic
#141244 #231F75 #312CA5 #4742CD #7672D9

Accessibility & contrast

On white

10.32
#312CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312CA5
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CA5#FFFFFF#000000##FFFFFF
##312CA51.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #312ca5;
/* rgb */ color: rgb(49, 44, 165);
/* oklch */ color: oklch(39.0% 0.186 275.3);
Tailwind
colors: {
  custom: {
    50: '#7a67c1',
    500: '#312ca5',
    950: '#000000',
  },
}
SCSS
$custom: #312ca5;
$custom-light: #7a67c1;
$custom-dark: #000000;
JSON
{
  "hex": "#312ca5",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 242.479,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39014,
    "c": 0.18562,
    "h": 275.3
  },
  "luminance": 0.05171
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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