#312FE2#312FE2

#312FE2 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 46.0% C 0.255 H 270.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#312FE2
RGBrgb(49, 47, 226)
HSLhsl(241, 76%, 54%)
HSVhsv(241, 79%, 89%)
CMYKcmyk(78.3%, 79.2%, 0%, 11.4%)
CIE-LABlab(34.35, 59.11, -87.98)
CIE-LCHlch(34.35, 105.99, 303.89°)
OKLaboklab(45.97% 0.0038 -0.2547)
OKLCHoklch(45.97% 0.255 270.9)
XYZxyz(16.0060, 8.1752, 72.6712)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FE2 #E0E22F
analogous
#2F87E2 #312FE2 #8A2FE2
triadic
#312FE2 #E2312F #2FE231
tetradic
#312FE2 #E22F87 #E0E22F #2FE28A
square
#312FE2 #E22F87 #E0E22F #2FE28A
split-complementary
#312FE2 #E28A2F #87E22F
monochromatic
#141284 #1C1ABA #312FE2 #6665E9 #9B9AF1

Accessibility & contrast

On white

7.97
#312FE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#312FE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FE2
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FE2#FFFFFF#000000##FFFFFF
##312FE21.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AE7
Deuteranopia (green-blind)
#0047DF
Tritanopia (blue-blind)
#006789
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #312fe2;
/* rgb */ color: rgb(49, 47, 226);
/* oklch */ color: oklch(46.0% 0.255 270.9);
Tailwind
colors: {
  custom: {
    50: '#886ced',
    500: '#312fe2',
    950: '#000000',
  },
}
SCSS
$custom: #312fe2;
$custom-light: #886ced;
$custom-dark: #000000;
JSON
{
  "hex": "#312fe2",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 240.67,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.45968,
    "c": 0.25474,
    "h": 270.9
  },
  "luminance": 0.08177
}

Semantic roles & 50–950 ramp

primary
#312FE2
secondary
#DCDD90
accent
#F236F0
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #312FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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