#312FB0#312FB0

#312FB0 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.6% C 0.196 H 274.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#312FB0
RGBrgb(49, 47, 176)
HSLhsl(241, 58%, 44%)
HSVhsv(241, 73%, 69%)
CMYKcmyk(72.2%, 73.3%, 0%, 31%)
CIE-LABlab(28.95, 43.20, -67.69)
CIE-LCHlch(28.95, 80.30, 302.55°)
OKLaboklab(40.59% 0.0135 -0.1958)
OKLCHoklch(40.59% 0.196 274)
XYZxyz(10.1170, 5.8196, 41.6560)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FB0 #AEB02F
analogous
#2F6DB0 #312FB0 #712FB0
triadic
#312FB0 #B0312F #2FB031
tetradic
#312FB0 #B02F6D #AEB02F #2FB071
square
#312FB0 #B02F6D #AEB02F #2FB071
split-complementary
#312FB0 #B0712F #6DB02F
monochromatic
#16154F #242280 #312FB0 #4F4DCF #7F7DDC

Accessibility & contrast

On white

9.70
#312FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#312FB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FB0
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FB0#FFFFFF#000000##FFFFFF
##312FB01.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#003EAE
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312fb0;
/* rgb */ color: rgb(49, 47, 176);
/* oklch */ color: oklch(40.6% 0.196 274.0);
Tailwind
colors: {
  custom: {
    50: '#7d69c9',
    500: '#312fb0',
    950: '#000000',
  },
}
SCSS
$custom: #312fb0;
$custom-light: #7d69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#312fb0",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 176
  },
  "hsl": {
    "h": 240.93,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40588,
    "c": 0.19623,
    "h": 274
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#312FB0
secondary
#C4C576
accent
#E147DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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