#312FBC#312FBC

#312FBC is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.8% C 0.211 H 273.1°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#312FBC
RGBrgb(49, 47, 188)
HSLhsl(241, 60%, 46%)
HSVhsv(241, 75%, 74%)
CMYKcmyk(73.9%, 75%, 0%, 26.3%)
CIE-LABlab(30.20, 47.15, -72.77)
CIE-LCHlch(30.20, 86.71, 302.94°)
OKLaboklab(41.84% 0.0114 -0.2105)
OKLCHoklch(41.84% 0.211 273.1)
XYZxyz(11.3572, 6.3157, 48.1877)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FBC #BABC2F
analogous
#2F73BC #312FBC #772FBC
triadic
#312FBC #BC312F #2FBC31
tetradic
#312FBC #BC2F73 #BABC2F #2FBC77
square
#312FBC #BC2F73 #BABC2F #2FBC77
split-complementary
#312FBC #BC772F #73BC2F
monochromatic
#17175A #24238B #312FBC #5654D4 #8685E0

Accessibility & contrast

On white

9.28
#312FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#312FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FBC
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FBC#FFFFFF#000000##FFFFFF
##312FBC1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0040BA
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #312fbc;
/* rgb */ color: rgb(49, 47, 188);
/* oklch */ color: oklch(41.8% 0.211 273.1);
Tailwind
colors: {
  custom: {
    50: '#7f6ad2',
    500: '#312fbc',
    950: '#000000',
  },
}
SCSS
$custom: #312fbc;
$custom-light: #7f6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#312fbc",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 240.851,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4184,
    "c": 0.21086,
    "h": 273.1
  },
  "luminance": 0.06317
}

Semantic roles & 50–950 ramp

primary
#312FBC
secondary
#C9CA7D
accent
#E345E1
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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