#311FC2#311FC2

#311FC2 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.6% C 0.231 H 273.9°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#311FC2
RGBrgb(49, 31, 194)
HSLhsl(247, 72%, 44%)
HSVhsv(247, 84%, 76%)
CMYKcmyk(74.7%, 84%, 0%, 23.9%)
CIE-LABlab(28.19, 56.78, -79.64)
CIE-LCHlch(28.19, 97.80, 305.49°)
OKLaboklab(40.64% 0.0156 -0.2303)
OKLCHoklch(40.64% 0.231 273.9)
XYZxyz(11.4910, 5.5268, 51.4897)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311FC2 #B0C21F
analogous
#1F5FC2 #311FC2 #831FC2
triadic
#311FC2 #C2311F #1FC231
tetradic
#311FC2 #C21F5F #B0C21F #1FC283
square
#311FC2 #C21F5F #B0C21F #1FC283
split-complementary
#311FC2 #C2831F #5FC21F
monochromatic
#160E58 #24178D #311FC2 #503EE0 #8073E9

Accessibility & contrast

On white

9.97
#311FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#311FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311FC2
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311FC2#FFFFFF#000000##FFFFFF
##311FC21.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC6
Deuteranopia (green-blind)
#003BBF
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #311fc2;
/* rgb */ color: rgb(49, 31, 194);
/* oklch */ color: oklch(40.6% 0.231 273.9);
Tailwind
colors: {
  custom: {
    50: '#8261d6',
    500: '#311fc2',
    950: '#000000',
  },
}
SCSS
$custom: #311fc2;
$custom-light: #8261d6;
$custom-dark: #000000;
JSON
{
  "hex": "#311fc2",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 194
  },
  "hsl": {
    "h": 246.626,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40635,
    "c": 0.23079,
    "h": 273.9
  },
  "luminance": 0.05528
}

Semantic roles & 50–950 ramp

primary
#311FC2
secondary
#C5CF6D
accent
#EF39DB
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0515
muted
#7D7A83

Preview Lab

Preview with #311FC2

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

Preview Lab → · Contrast checker → · Palette generator →

#311FC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva