#312FC5#312FC5

#312FC5 is a dark, highly saturated blue. Relative luminance 0.067; OKLCH L 42.8% C 0.222 H 272.5°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#312FC5
RGBrgb(49, 47, 197)
HSLhsl(241, 61%, 48%)
HSVhsv(241, 76%, 77%)
CMYKcmyk(75.1%, 76.1%, 0%, 22.7%)
CIE-LABlab(31.15, 50.06, -76.48)
CIE-LCHlch(31.15, 91.41, 303.21°)
OKLaboklab(42.8% 0.0096 -0.2214)
OKLCHoklch(42.8% 0.222 272.5)
XYZxyz(12.3578, 6.7159, 53.4575)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FC5 #C3C52F
analogous
#2F78C5 #312FC5 #7C2FC5
triadic
#312FC5 #C5312F #2FC531
tetradic
#312FC5 #C52F78 #C3C52F #2FC57C
square
#312FC5 #C52F78 #C3C52F #2FC57C
split-complementary
#312FC5 #C57C2F #78C52F
monochromatic
#181762 #252394 #312FC5 #5B5AD8 #8C8BE3

Accessibility & contrast

On white

8.96
#312FC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#312FC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FC5
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FC5#FFFFFF#000000##FFFFFF
##312FC51.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C9
Deuteranopia (green-blind)
#0042C2
Tritanopia (blue-blind)
#005C78
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #312fc5;
/* rgb */ color: rgb(49, 47, 197);
/* oklch */ color: oklch(42.8% 0.222 272.5);
Tailwind
colors: {
  custom: {
    50: '#816ad8',
    500: '#312fc5',
    950: '#000000',
  },
}
SCSS
$custom: #312fc5;
$custom-light: #816ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#312fc5",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 197
  },
  "hsl": {
    "h": 240.8,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.42798,
    "c": 0.22157,
    "h": 272.5
  },
  "luminance": 0.06717
}

Semantic roles & 50–950 ramp

primary
#312FC5
secondary
#CCCD82
accent
#E543E2
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #312FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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