#312DC8#312DC8

#312DC8 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.9% C 0.227 H 272.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#312DC8
RGBrgb(49, 45, 200)
HSLhsl(242, 63%, 48%)
HSVhsv(242, 78%, 78%)
CMYKcmyk(75.5%, 77.5%, 0%, 21.6%)
CIE-LABlab(31.11, 52.06, -78.31)
CIE-LCHlch(31.11, 94.03, 303.62°)
OKLaboklab(42.86% 0.0098 -0.2266)
OKLCHoklch(42.86% 0.227 272.5)
XYZxyz(12.6268, 6.6985, 55.2599)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DC8 #C4C82D
analogous
#2D77C8 #312DC8 #7E2DC8
triadic
#312DC8 #C8312D #2DC831
tetradic
#312DC8 #C82D77 #C4C82D #2DC87E
square
#312DC8 #C82D77 #C4C82D #2DC87E
split-complementary
#312DC8 #C87E2D #77C82D
monochromatic
#191764 #252296 #312DC8 #5C59DA #8D8BE5

Accessibility & contrast

On white

8.97
#312DC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#312DC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DC8
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DC8#FFFFFF#000000##FFFFFF
##312DC81.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CC
Deuteranopia (green-blind)
#0041C5
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #312dc8;
/* rgb */ color: rgb(49, 45, 200);
/* oklch */ color: oklch(42.9% 0.227 272.5);
Tailwind
colors: {
  custom: {
    50: '#8269da',
    500: '#312dc8',
    950: '#000000',
  },
}
SCSS
$custom: #312dc8;
$custom-light: #8269da;
$custom-dark: #000000;
JSON
{
  "hex": "#312dc8",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 241.548,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.42864,
    "c": 0.22684,
    "h": 272.5
  },
  "luminance": 0.067
}

Semantic roles & 50–950 ramp

primary
#312DC8
secondary
#CDCF82
accent
#E641E2
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #312DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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