#312BC4#312BC4

#312BC4 is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.2% C 0.224 H 272.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#312BC4
RGBrgb(49, 43, 196)
HSLhsl(242, 64%, 47%)
HSVhsv(242, 78%, 77%)
CMYKcmyk(75%, 78.1%, 0%, 23.1%)
CIE-LABlab(30.32, 51.83, -77.28)
CIE-LCHlch(30.32, 93.05, 303.85°)
OKLaboklab(42.18% 0.0113 -0.2236)
OKLCHoklch(42.18% 0.224 272.9)
XYZxyz(12.0910, 6.3650, 52.8052)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BC4 #BEC42B
analogous
#2B72C4 #312BC4 #7E2BC4
triadic
#312BC4 #C4312B #2BC431
tetradic
#312BC4 #C42B72 #BEC42B #2BC47E
square
#312BC4 #C42B72 #BEC42B #2BC47E
split-complementary
#312BC4 #C47E2B #72C42B
monochromatic
#181560 #242092 #312BC4 #5853D9 #8985E4

Accessibility & contrast

On white

9.24
#312BC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#312BC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BC4
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BC4#FFFFFF#000000##FFFFFF
##312BC41.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC8
Deuteranopia (green-blind)
#0040C1
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #312bc4;
/* rgb */ color: rgb(49, 43, 196);
/* oklch */ color: oklch(42.2% 0.224 272.9);
Tailwind
colors: {
  custom: {
    50: '#8268d7',
    500: '#312bc4',
    950: '#000000',
  },
}
SCSS
$custom: #312bc4;
$custom-light: #8268d7;
$custom-dark: #000000;
JSON
{
  "hex": "#312bc4",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 196
  },
  "hsl": {
    "h": 242.353,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.42178,
    "c": 0.22392,
    "h": 272.9
  },
  "luminance": 0.06366
}

Semantic roles & 50–950 ramp

primary
#312BC4
secondary
#CACE7D
accent
#E741E1
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #312BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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