#312FC8#312FC8

#312FC8 is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.1% C 0.225 H 272.3°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#312FC8
RGBrgb(49, 47, 200)
HSLhsl(241, 62%, 48%)
HSVhsv(241, 77%, 78%)
CMYKcmyk(75.5%, 76.5%, 0%, 21.6%)
CIE-LABlab(31.47, 51.02, -77.70)
CIE-LCHlch(31.47, 92.96, 303.29°)
OKLaboklab(43.12% 0.009 -0.2249)
OKLCHoklch(43.12% 0.225 272.3)
XYZxyz(12.7050, 6.8548, 55.2859)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FC8 #C6C82F
analogous
#2F79C8 #312FC8 #7D2FC8
triadic
#312FC8 #C8312F #2FC831
tetradic
#312FC8 #C82F79 #C6C82F #2FC87D
square
#312FC8 #C82F79 #C6C82F #2FC87D
split-complementary
#312FC8 #C87D2F #79C82F
monochromatic
#191865 #252396 #312FC8 #5D5CD9 #8E8DE4

Accessibility & contrast

On white

8.86
#312FC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#312FC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FC8
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FC8#FFFFFF#000000##FFFFFF
##312FC81.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CC
Deuteranopia (green-blind)
#0042C5
Tritanopia (blue-blind)
#005D7A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #312fc8;
/* rgb */ color: rgb(49, 47, 200);
/* oklch */ color: oklch(43.1% 0.225 272.3);
Tailwind
colors: {
  custom: {
    50: '#826ada',
    500: '#312fc8',
    950: '#000000',
  },
}
SCSS
$custom: #312fc8;
$custom-light: #826ada;
$custom-dark: #000000;
JSON
{
  "hex": "#312fc8",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 240.784,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4312,
    "c": 0.22509,
    "h": 272.3
  },
  "luminance": 0.06856
}

Semantic roles & 50–950 ramp

primary
#312FC8
secondary
#CECF84
accent
#E543E3
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #312FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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