#312FCF#312FCF

#312FCF is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.9% C 0.233 H 271.9°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#312FCF
RGBrgb(49, 47, 207)
HSLhsl(241, 63%, 50%)
HSVhsv(241, 77%, 81%)
CMYKcmyk(76.3%, 77.3%, 0%, 18.8%)
CIE-LABlab(32.23, 53.24, -80.53)
CIE-LCHlch(32.23, 96.53, 303.47°)
OKLaboklab(43.88% 0.0076 -0.2331)
OKLCHoklch(43.88% 0.233 271.9)
XYZxyz(13.5418, 7.1895, 59.6934)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FCF #CDCF2F
analogous
#2F7DCF #312FCF #812FCF
triadic
#312FCF #CF312F #2FCF31
tetradic
#312FCF #CF2F7D #CDCF2F #2FCF81
square
#312FCF #CF2F7D #CDCF2F #2FCF81
split-complementary
#312FCF #CF812F #7DCF2F
monochromatic
#19186B #25249D #312FCF #6260DB #9392E6

Accessibility & contrast

On white

8.61
#312FCF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#312FCF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FCF
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FCF#FFFFFF#000000##FFFFFF
##312FCF1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D4
Deuteranopia (green-blind)
#0044CC
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #312fcf;
/* rgb */ color: rgb(49, 47, 207);
/* oklch */ color: oklch(43.9% 0.233 271.9);
Tailwind
colors: {
  custom: {
    50: '#846bdf',
    500: '#312fcf',
    950: '#000000',
  },
}
SCSS
$custom: #312fcf;
$custom-light: #846bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#312fcf",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 207
  },
  "hsl": {
    "h": 240.75,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.43878,
    "c": 0.23323,
    "h": 271.9
  },
  "luminance": 0.07191
}

Semantic roles & 50–950 ramp

primary
#312FCF
secondary
#D0D189
accent
#E642E4
background
#F9F6FD
surface
#F1EBFB
border
#CBC6D4
text
#0D0715
muted
#7E7A83

Preview Lab

Preview with #312FCF

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

Preview Lab → · Contrast checker → · Palette generator →

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