#312BCC#312BCC

#312BCC is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 43.1% C 0.233 H 272.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#312BCC
RGBrgb(49, 43, 204)
HSLhsl(242, 65%, 48%)
HSVhsv(242, 79%, 80%)
CMYKcmyk(76%, 78.9%, 0%, 20%)
CIE-LABlab(31.21, 54.32, -80.49)
CIE-LCHlch(31.21, 97.10, 304.01°)
OKLaboklab(43.06% 0.0096 -0.2329)
OKLCHoklch(43.06% 0.233 272.4)
XYZxyz(13.0259, 6.7390, 57.7293)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BCC #C6CC2B
analogous
#2B75CC #312BCC #812BCC
triadic
#312BCC #CC312B #2BCC31
tetradic
#312BCC #CC2B75 #C6CC2B #2BCC81
square
#312BCC #CC2B75 #C6CC2B #2BCC81
split-complementary
#312BCC #CC812B #75CC2B
monochromatic
#191667 #252099 #312BCC #5D58DC #8E8BE7

Accessibility & contrast

On white

8.94
#312BCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#312BCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BCC
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BCC#FFFFFF#000000##FFFFFF
##312BCC1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051D0
Deuteranopia (green-blind)
#0041C9
Tritanopia (blue-blind)
#005D7C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #312bcc;
/* rgb */ color: rgb(49, 43, 204);
/* oklch */ color: oklch(43.1% 0.233 272.4);
Tailwind
colors: {
  custom: {
    50: '#8368dd',
    500: '#312bcc',
    950: '#000000',
  },
}
SCSS
$custom: #312bcc;
$custom-light: #8368dd;
$custom-dark: #000000;
JSON
{
  "hex": "#312bcc",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 204
  },
  "hsl": {
    "h": 242.236,
    "s": 65.182,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4306,
    "c": 0.23313,
    "h": 272.4
  },
  "luminance": 0.0674
}

Semantic roles & 50–950 ramp

primary
#312BCC
secondary
#CED082
accent
#E840E2
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #312BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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