#312FD0#312FD0

#312FD0 is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 44.0% C 0.234 H 271.8°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#312FD0
RGBrgb(49, 47, 208)
HSLhsl(241, 63%, 50%)
HSVhsv(241, 77%, 82%)
CMYKcmyk(76.4%, 77.4%, 0%, 18.4%)
CIE-LABlab(32.34, 53.55, -80.93)
CIE-LCHlch(32.34, 97.04, 303.49°)
OKLaboklab(43.99% 0.0074 -0.2343)
OKLCHoklch(43.99% 0.234 271.8)
XYZxyz(13.6645, 7.2386, 60.3393)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FD0 #CED02F
analogous
#2F7ED0 #312FD0 #812FD0
triadic
#312FD0 #D0312F #2FD031
tetradic
#312FD0 #D02F7E #CED02F #2FD081
square
#312FD0 #D02F7E #CED02F #2FD081
split-complementary
#312FD0 #D0812F #7ED02F
monochromatic
#19186C #25249E #312FD0 #6261DB #9493E7

Accessibility & contrast

On white

8.58
#312FD0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#312FD0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FD0
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FD0#FFFFFF#000000##FFFFFF
##312FD01.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054D5
Deuteranopia (green-blind)
#0044CD
Tritanopia (blue-blind)
#00607F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #312fd0;
/* rgb */ color: rgb(49, 47, 208);
/* oklch */ color: oklch(44.0% 0.234 271.8);
Tailwind
colors: {
  custom: {
    50: '#846be0',
    500: '#312fd0',
    950: '#000000',
  },
}
SCSS
$custom: #312fd0;
$custom-light: #846be0;
$custom-dark: #000000;
JSON
{
  "hex": "#312fd0",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 208
  },
  "hsl": {
    "h": 240.745,
    "s": 63.137,
    "l": 50
  },
  "oklch": {
    "l": 0.43986,
    "c": 0.23438,
    "h": 271.8
  },
  "luminance": 0.0724
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312FD0

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

Preview Lab → · Contrast checker → · Palette generator →

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