#312BA2#312BA2

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

Color values

HEX#312BA2
RGBrgb(49, 43, 162)
HSLhsl(243, 58%, 40%)
HSVhsv(243, 73%, 64%)
CMYKcmyk(69.8%, 73.5%, 0%, 36.5%)
CIE-LABlab(26.70, 40.84, -62.96)
CIE-LCHlch(26.70, 75.05, 302.97°)
OKLaboklab(38.56% 0.0183 -0.182)
OKLCHoklch(38.56% 0.183 275.8)
XYZxyz(8.6499, 4.9886, 34.6825)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BA2 #9CA22B
analogous
#2B61A2 #312BA2 #6C2BA2
triadic
#312BA2 #A2312B #2BA231
tetradic
#312BA2 #A22B61 #9CA22B #2BA26C
square
#312BA2 #A22B61 #9CA22B #2BA26C
split-complementary
#312BA2 #A26C2B #61A22B
monochromatic
#141141 #221E72 #312BA2 #453ECC #746FD9

Accessibility & contrast

On white

10.51
#312BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#312BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BA2
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BA2#FFFFFF#000000##FFFFFF
##312BA21.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #312ba2;
/* rgb */ color: rgb(49, 43, 162);
/* oklch */ color: oklch(38.6% 0.183 275.8);
Tailwind
colors: {
  custom: {
    50: '#7a66bf',
    500: '#312ba2',
    950: '#000000',
  },
}
SCSS
$custom: #312ba2;
$custom-light: #7a66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#312ba2",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 243.025,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38558,
    "c": 0.1829,
    "h": 275.8
  },
  "luminance": 0.04989
}

Semantic roles & 50–950 ramp

primary
#312BA2
secondary
#BBC069
accent
#E147D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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