#312BBF#312BBF

#312BBF is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.6% C 0.218 H 273.3°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#312BBF
RGBrgb(49, 43, 191)
HSLhsl(242, 63%, 46%)
HSVhsv(242, 77%, 75%)
CMYKcmyk(74.3%, 77.5%, 0%, 25.1%)
CIE-LABlab(29.77, 50.26, -75.25)
CIE-LCHlch(29.77, 90.49, 303.74°)
OKLaboklab(41.63% 0.0124 -0.2177)
OKLCHoklch(41.63% 0.218 273.3)
XYZxyz(11.5313, 6.1411, 49.8577)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312BBF #B9BF2B
analogous
#2B6FBF #312BBF #7B2BBF
triadic
#312BBF #BF312B #2BBF31
tetradic
#312BBF #BF2B6F #B9BF2B #2BBF7B
square
#312BBF #BF2B6F #B9BF2B #2BBF7B
split-complementary
#312BBF #BF7B2B #6FBF2B
monochromatic
#17155B #24208D #312BBF #5550D8 #8682E3

Accessibility & contrast

On white

9.42
#312BBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#312BBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312BBF
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312BBF#FFFFFF#000000##FFFFFF
##312BBF1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC3
Deuteranopia (green-blind)
#003FBC
Tritanopia (blue-blind)
#005874
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #312bbf;
/* rgb */ color: rgb(49, 43, 191);
/* oklch */ color: oklch(41.6% 0.218 273.3);
Tailwind
colors: {
  custom: {
    50: '#8067d4',
    500: '#312bbf',
    950: '#000000',
  },
}
SCSS
$custom: #312bbf;
$custom-light: #8067d4;
$custom-dark: #000000;
JSON
{
  "hex": "#312bbf",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 191
  },
  "hsl": {
    "h": 242.432,
    "s": 63.248,
    "l": 45.882
  },
  "oklch": {
    "l": 0.41632,
    "c": 0.21808,
    "h": 273.3
  },
  "luminance": 0.06142
}

Semantic roles & 50–950 ramp

primary
#312BBF
secondary
#C8CC7A
accent
#E642E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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