#312CBD#312CBD

#312CBD is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.5% C 0.215 H 273.3°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#312CBD
RGBrgb(49, 44, 189)
HSLhsl(242, 62%, 46%)
HSVhsv(242, 77%, 74%)
CMYKcmyk(74.1%, 76.7%, 0%, 25.9%)
CIE-LABlab(29.73, 49.10, -74.12)
CIE-LCHlch(29.73, 88.91, 303.52°)
OKLaboklab(41.54% 0.0124 -0.2145)
OKLCHoklch(41.54% 0.215 273.3)
XYZxyz(11.3495, 6.1273, 48.7188)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CBD #B8BD2C
analogous
#2C6FBD #312CBD #792CBD
triadic
#312CBD #BD312C #2CBD31
tetradic
#312CBD #BD2C6F #B8BD2C #2CBD79
square
#312CBD #BD2C6F #B8BD2C #2CBD79
split-complementary
#312CBD #BD792C #6FBD2C
monochromatic
#17155A #24208B #312CBD #5550D6 #8582E2

Accessibility & contrast

On white

9.44
#312CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#312CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CBD
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CBD#FFFFFF#000000##FFFFFF
##312CBD1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC1
Deuteranopia (green-blind)
#003FBA
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #312cbd;
/* rgb */ color: rgb(49, 44, 189);
/* oklch */ color: oklch(41.5% 0.215 273.3);
Tailwind
colors: {
  custom: {
    50: '#8068d2',
    500: '#312cbd',
    950: '#000000',
  },
}
SCSS
$custom: #312cbd;
$custom-light: #8068d2;
$custom-dark: #000000;
JSON
{
  "hex": "#312cbd",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 242.069,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41544,
    "c": 0.21483,
    "h": 273.3
  },
  "luminance": 0.06128
}

Semantic roles & 50–950 ramp

primary
#312CBD
secondary
#C8CB7A
accent
#E542E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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