#312CBA#312CBA

#312CBA is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.2% C 0.211 H 273.5°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#312CBA
RGBrgb(49, 44, 186)
HSLhsl(242, 62%, 45%)
HSVhsv(242, 76%, 73%)
CMYKcmyk(73.7%, 76.3%, 0%, 27.1%)
CIE-LABlab(29.41, 48.14, -72.88)
CIE-LCHlch(29.41, 87.35, 303.44°)
OKLaboklab(41.22% 0.0131 -0.2109)
OKLCHoklch(41.22% 0.211 273.5)
XYZxyz(11.0273, 5.9984, 47.0215)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CBA #B5BA2C
analogous
#2C6EBA #312CBA #782CBA
triadic
#312CBA #BA312C #2CBA31
tetradic
#312CBA #BA2C6E #B5BA2C #2CBA78
square
#312CBA #BA2C6E #B5BA2C #2CBA78
split-complementary
#312CBA #BA782C #6EBA2C
monochromatic
#171557 #242089 #312CBA #534ED5 #8380E1

Accessibility & contrast

On white

9.55
#312CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#312CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CBA
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CBA#FFFFFF#000000##FFFFFF
##312CBA1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBE
Deuteranopia (green-blind)
#003EB8
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312cba;
/* rgb */ color: rgb(49, 44, 186);
/* oklch */ color: oklch(41.2% 0.211 273.5);
Tailwind
colors: {
  custom: {
    50: '#7f68d0',
    500: '#312cba',
    950: '#000000',
  },
}
SCSS
$custom: #312cba;
$custom-light: #7f68d0;
$custom-dark: #000000;
JSON
{
  "hex": "#312cba",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 242.113,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41221,
    "c": 0.21127,
    "h": 273.5
  },
  "luminance": 0.06
}

Semantic roles & 50–950 ramp

primary
#312CBA
secondary
#C7CA78
accent
#E543DF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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