#311FAC#311FAC

#311FAC is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.1% C 0.206 H 276.1°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#311FAC
RGBrgb(49, 31, 172)
HSLhsl(248, 69%, 40%)
HSVhsv(248, 82%, 67%)
CMYKcmyk(71.5%, 82%, 0%, 32.5%)
CIE-LABlab(25.60, 50.29, -70.84)
CIE-LCHlch(25.60, 86.87, 305.37°)
OKLaboklab(38.1% 0.0218 -0.2047)
OKLCHoklch(38.1% 0.206 276.1)
XYZxyz(9.2006, 4.6106, 39.4268)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311FAC #9AAC1F
analogous
#1F53AC #311FAC #781FAC
triadic
#311FAC #AC311F #1FAC31
tetradic
#311FAC #AC1F53 #9AAC1F #1FAC78
square
#311FAC #AC1F53 #9AAC1F #1FAC78
split-complementary
#311FAC #AC781F #53AC1F
monochromatic
#130C44 #221678 #311FAC #452FD9 #7363E3

Accessibility & contrast

On white

10.92
#311FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#311FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311FAC
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311FAC#FFFFFF#000000##FFFFFF
##311FAC1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B0
Deuteranopia (green-blind)
#0036AA
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #311fac;
/* rgb */ color: rgb(49, 31, 172);
/* oklch */ color: oklch(38.1% 0.206 276.1);
Tailwind
colors: {
  custom: {
    50: '#7d60c6',
    500: '#311fac',
    950: '#000000',
  },
}
SCSS
$custom: #311fac;
$custom-light: #7d60c6;
$custom-dark: #000000;
JSON
{
  "hex": "#311fac",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 172
  },
  "hsl": {
    "h": 247.66,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38102,
    "c": 0.20591,
    "h": 276.1
  },
  "luminance": 0.04611
}

Semantic roles & 50–950 ramp

primary
#311FAC
secondary
#BAC85F
accent
#EC3CD6
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #311FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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