#312BBD#312BBD

#312BBD is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.4% C 0.216 H 273.4°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#312BBD
RGBrgb(49, 43, 189)
HSLhsl(242, 63%, 45%)
HSVhsv(242, 77%, 74%)
CMYKcmyk(74.1%, 77.2%, 0%, 25.9%)
CIE-LABlab(29.55, 49.62, -74.43)
CIE-LCHlch(29.55, 89.45, 303.69°)
OKLaboklab(41.42% 0.0128 -0.2153)
OKLCHoklch(41.42% 0.216 273.4)
XYZxyz(11.3127, 6.0537, 48.7065)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BBD #B7BD2B
analogous
#2B6EBD #312BBD #7A2BBD
triadic
#312BBD #BD312B #2BBD31
tetradic
#312BBD #BD2B6E #B7BD2B #2BBD7A
square
#312BBD #BD2B6E #B7BD2B #2BBD7A
split-complementary
#312BBD #BD7A2B #6EBD2B
monochromatic
#171459 #24208B #312BBD #544ED7 #8480E2

Accessibility & contrast

On white

9.50
#312BBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#312BBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BBD
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BBD#FFFFFF#000000##FFFFFF
##312BBD1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC1
Deuteranopia (green-blind)
#003FBA
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #312bbd;
/* rgb */ color: rgb(49, 43, 189);
/* oklch */ color: oklch(41.4% 0.216 273.4);
Tailwind
colors: {
  custom: {
    50: '#8067d2',
    500: '#312bbd',
    950: '#000000',
  },
}
SCSS
$custom: #312bbd;
$custom-light: #8067d2;
$custom-dark: #000000;
JSON
{
  "hex": "#312bbd",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 189
  },
  "hsl": {
    "h": 242.466,
    "s": 62.931,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41415,
    "c": 0.21573,
    "h": 273.4
  },
  "luminance": 0.06055
}

Semantic roles & 50–950 ramp

primary
#312BBD
secondary
#C8CB79
accent
#E642DF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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