#312FED#312FED

#312FED is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 47.2% C 0.267 H 270.3°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#312FED
RGBrgb(49, 47, 237)
HSLhsl(241, 84%, 56%)
HSVhsv(241, 80%, 93%)
CMYKcmyk(79.3%, 80.2%, 0%, 7.1%)
CIE-LABlab(35.59, 62.41, -92.17)
CIE-LCHlch(35.59, 111.31, 304.10°)
OKLaboklab(47.2% 0.0016 -0.2668)
OKLCHoklch(47.2% 0.267 270.3)
XYZxyz(17.5640, 8.7984, 80.8769)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FED #EBED2F
analogous
#2F8CED #312FED #902FED
triadic
#312FED #ED312F #2FED31
tetradic
#312FED #ED2F8C #EBED2F #2FED90
square
#312FED #ED2F8C #EBED2F #2FED90
split-complementary
#312FED #ED902F #8CED2F
monochromatic
#0E0D95 #1412CD #312FED #6967F2 #A1A0F7

Accessibility & contrast

On white

7.61
#312FED on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#312FED on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FED
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FED#FFFFFF#000000##FFFFFF
##312FED1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DF2
Deuteranopia (green-blind)
#004AEA
Tritanopia (blue-blind)
#006C90
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #312fed;
/* rgb */ color: rgb(49, 47, 237);
/* oklch */ color: oklch(47.2% 0.267 270.3);
Tailwind
colors: {
  custom: {
    50: '#8b6cf5',
    500: '#312fed',
    950: '#000000',
  },
}
SCSS
$custom: #312fed;
$custom-light: #8b6cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#312fed",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 237
  },
  "hsl": {
    "h": 240.632,
    "s": 84.071,
    "l": 55.686
  },
  "oklch": {
    "l": 0.47196,
    "c": 0.26685,
    "h": 270.3
  },
  "luminance": 0.088
}

Semantic roles & 50–950 ramp

primary
#312FED
secondary
#E3E394
accent
#FA2DF8
background
#F9F6FF
surface
#F2ECFF
border
#CCC7D7
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #312FED

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

Preview Lab → · Contrast checker → · Palette generator →

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