#312CC8#312CC8

#312CC8 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.7% C 0.228 H 272.5°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#312CC8
RGBrgb(49, 44, 200)
HSLhsl(242, 64%, 48%)
HSVhsv(242, 78%, 78%)
CMYKcmyk(75.5%, 78%, 0%, 21.6%)
CIE-LABlab(30.93, 52.57, -78.60)
CIE-LCHlch(30.93, 94.56, 303.78°)
OKLaboklab(42.74% 0.0101 -0.2275)
OKLCHoklch(42.74% 0.228 272.5)
XYZxyz(12.5891, 6.6231, 55.2473)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CC8 #C3C82C
analogous
#2C75C8 #312CC8 #7F2CC8
triadic
#312CC8 #C8312C #2CC831
tetradic
#312CC8 #C82C75 #C3C82C #2CC87F
square
#312CC8 #C82C75 #C3C82C #2CC87F
split-complementary
#312CC8 #C87F2C #75C82C
monochromatic
#181664 #252196 #312CC8 #5B57DA #8C89E5

Accessibility & contrast

On white

9.03
#312CC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#312CC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CC8
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CC8#FFFFFF#000000##FFFFFF
##312CC81.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312cc8;
/* rgb */ color: rgb(49, 44, 200);
/* oklch */ color: oklch(42.7% 0.228 272.5);
Tailwind
colors: {
  custom: {
    50: '#8268da',
    500: '#312cc8',
    950: '#000000',
  },
}
SCSS
$custom: #312cc8;
$custom-light: #8268da;
$custom-dark: #000000;
JSON
{
  "hex": "#312cc8",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 200
  },
  "hsl": {
    "h": 241.923,
    "s": 63.934,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4274,
    "c": 0.2277,
    "h": 272.5
  },
  "luminance": 0.06624
}

Semantic roles & 50–950 ramp

primary
#312CC8
secondary
#CCCF81
accent
#E741E2
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #312CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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