#312BC0#312BC0

#312BC0 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.7% C 0.219 H 273.2°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#312BC0
RGBrgb(49, 43, 192)
HSLhsl(242, 63%, 46%)
HSVhsv(242, 78%, 75%)
CMYKcmyk(74.5%, 77.6%, 0%, 24.7%)
CIE-LABlab(29.88, 50.57, -75.66)
CIE-LCHlch(29.88, 91.00, 303.76°)
OKLaboklab(41.74% 0.0122 -0.2189)
OKLCHoklch(41.74% 0.219 273.2)
XYZxyz(11.6417, 6.1853, 50.4393)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BC0 #BAC02B
analogous
#2B6FC0 #312BC0 #7B2BC0
triadic
#312BC0 #C0312B #2BC031
tetradic
#312BC0 #C02B6F #BAC02B #2BC07B
square
#312BC0 #C02B6F #BAC02B #2BC07B
split-complementary
#312BC0 #C07B2B #6FC02B
monochromatic
#17155C #24208E #312BC0 #5650D8 #8682E3

Accessibility & contrast

On white

9.39
#312BC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#312BC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BC0
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BC0#FFFFFF#000000##FFFFFF
##312BC01.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC4
Deuteranopia (green-blind)
#003FBD
Tritanopia (blue-blind)
#005875
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #312bc0;
/* rgb */ color: rgb(49, 43, 192);
/* oklch */ color: oklch(41.7% 0.219 273.2);
Tailwind
colors: {
  custom: {
    50: '#8167d4',
    500: '#312bc0',
    950: '#000000',
  },
}
SCSS
$custom: #312bc0;
$custom-light: #8167d4;
$custom-dark: #000000;
JSON
{
  "hex": "#312bc0",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 192
  },
  "hsl": {
    "h": 242.416,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.41741,
    "c": 0.21925,
    "h": 273.2
  },
  "luminance": 0.06186
}

Semantic roles & 50–950 ramp

primary
#312BC0
secondary
#C9CC7B
accent
#E641E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312BC0

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

Preview Lab → · Contrast checker → · Palette generator →

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