#312FCA#312FCA

#312FCA is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.3% C 0.227 H 272.2°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#312FCA
RGBrgb(49, 47, 202)
HSLhsl(241, 62%, 49%)
HSVhsv(241, 77%, 79%)
CMYKcmyk(75.7%, 76.7%, 0%, 20.8%)
CIE-LABlab(31.69, 51.66, -78.52)
CIE-LCHlch(31.69, 93.98, 303.34°)
OKLaboklab(43.34% 0.0086 -0.2273)
OKLCHoklch(43.34% 0.227 272.2)
XYZxyz(12.9402, 6.9489, 56.5249)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FCA #C8CA2F
analogous
#2F7BCA #312FCA #7F2FCA
triadic
#312FCA #CA312F #2FCA31
tetradic
#312FCA #CA2F7B #C8CA2F #2FCA7F
square
#312FCA #CA2F7B #C8CA2F #2FCA7F
split-complementary
#312FCA #CA7F2F #7BCA2F
monochromatic
#191867 #252398 #312FCA #5F5DD9 #908FE5

Accessibility & contrast

On white

8.79
#312FCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#312FCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FCA
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FCA#FFFFFF#000000##FFFFFF
##312FCA1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CE
Deuteranopia (green-blind)
#0043C7
Tritanopia (blue-blind)
#005E7B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #312fca;
/* rgb */ color: rgb(49, 47, 202);
/* oklch */ color: oklch(43.3% 0.227 272.2);
Tailwind
colors: {
  custom: {
    50: '#836adc',
    500: '#312fca',
    950: '#000000',
  },
}
SCSS
$custom: #312fca;
$custom-light: #836adc;
$custom-dark: #000000;
JSON
{
  "hex": "#312fca",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 202
  },
  "hsl": {
    "h": 240.774,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43336,
    "c": 0.22742,
    "h": 272.2
  },
  "luminance": 0.0695
}

Semantic roles & 50–950 ramp

primary
#312FCA
secondary
#CECF86
accent
#E542E3
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #312FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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