#312FB2#312FB2

#312FB2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.8% C 0.199 H 273.8°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#312FB2
RGBrgb(49, 47, 178)
HSLhsl(241, 58%, 44%)
HSVhsv(241, 74%, 70%)
CMYKcmyk(72.5%, 73.6%, 0%, 30.2%)
CIE-LABlab(29.16, 43.86, -68.54)
CIE-LCHlch(29.16, 81.38, 302.62°)
OKLaboklab(40.79% 0.0132 -0.1983)
OKLCHoklch(40.79% 0.199 273.8)
XYZxyz(10.3163, 5.8993, 42.7058)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FB2 #B0B22F
analogous
#2F6FB2 #312FB2 #732FB2
triadic
#312FB2 #B2312F #2FB231
tetradic
#312FB2 #B22F6F #B0B22F #2FB273
square
#312FB2 #B22F6F #B0B22F #2FB273
split-complementary
#312FB2 #B2732F #6FB22F
monochromatic
#161551 #242282 #312FB2 #504ED0 #807EDD

Accessibility & contrast

On white

9.63
#312FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#312FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FB2
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FB2#FFFFFF#000000##FFFFFF
##312FB21.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312fb2;
/* rgb */ color: rgb(49, 47, 178);
/* oklch */ color: oklch(40.8% 0.199 273.8);
Tailwind
colors: {
  custom: {
    50: '#7d69ca',
    500: '#312fb2',
    950: '#000000',
  },
}
SCSS
$custom: #312fb2;
$custom-light: #7d69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#312fb2",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 240.916,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40794,
    "c": 0.1987,
    "h": 273.8
  },
  "luminance": 0.059
}

Semantic roles & 50–950 ramp

primary
#312FB2
secondary
#C5C677
accent
#E146DF
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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