#312CC0#312CC0

#312CC0 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.9% C 0.218 H 273.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#312CC0
RGBrgb(49, 44, 192)
HSLhsl(242, 63%, 46%)
HSVhsv(242, 77%, 75%)
CMYKcmyk(74.5%, 77.1%, 0%, 24.7%)
CIE-LABlab(30.06, 50.05, -75.36)
CIE-LCHlch(30.06, 90.46, 303.59°)
OKLaboklab(41.87% 0.0118 -0.218)
OKLCHoklch(41.87% 0.218 273.1)
XYZxyz(11.6786, 6.2589, 50.4516)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CC0 #BBC02C
analogous
#2C71C0 #312CC0 #7B2CC0
triadic
#312CC0 #C0312C #2CC031
tetradic
#312CC0 #C02C71 #BBC02C #2CC07B
square
#312CC0 #C02C71 #BBC02C #2CC07B
split-complementary
#312CC0 #C07B2C #71C02C
monochromatic
#18155C #24218E #312CC0 #5652D7 #8784E3

Accessibility & contrast

On white

9.33
#312CC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#312CC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CC0
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CC0#FFFFFF#000000##FFFFFF
##312CC01.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC4
Deuteranopia (green-blind)
#0040BD
Tritanopia (blue-blind)
#005975
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #312cc0;
/* rgb */ color: rgb(49, 44, 192);
/* oklch */ color: oklch(41.9% 0.218 273.1);
Tailwind
colors: {
  custom: {
    50: '#8168d4',
    500: '#312cc0',
    950: '#000000',
  },
}
SCSS
$custom: #312cc0;
$custom-light: #8168d4;
$custom-dark: #000000;
JSON
{
  "hex": "#312cc0",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 192
  },
  "hsl": {
    "h": 242.027,
    "s": 62.712,
    "l": 46.275
  },
  "oklch": {
    "l": 0.41868,
    "c": 0.21837,
    "h": 273.1
  },
  "luminance": 0.0626
}

Semantic roles & 50–950 ramp

primary
#312CC0
secondary
#C9CC7C
accent
#E642E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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