#312AB7#312AB7

#312AB7 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.6% C 0.210 H 274.0°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#312AB7
RGBrgb(49, 42, 183)
HSLhsl(243, 63%, 44%)
HSVhsv(243, 77%, 72%)
CMYKcmyk(73.2%, 77%, 0%, 28.2%)
CIE-LABlab(28.71, 48.24, -72.25)
CIE-LCHlch(28.71, 86.88, 303.73°)
OKLaboklab(40.64% 0.0146 -0.209)
OKLCHoklch(40.64% 0.21 274)
XYZxyz(10.6390, 5.7267, 45.3352)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AB7 #B0B72A
analogous
#2A6AB7 #312AB7 #782AB7
triadic
#312AB7 #B7312A #2AB731
tetradic
#312AB7 #B72A6A #B0B72A #2AB778
square
#312AB7 #B72A6A #B0B72A #2AB778
split-complementary
#312AB7 #B7782A #6AB72A
monochromatic
#161353 #241F85 #312AB7 #5049D5 #807BE1

Accessibility & contrast

On white

9.79
#312AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#312AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AB7
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AB7#FFFFFF#000000##FFFFFF
##312AB71.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABB
Deuteranopia (green-blind)
#003DB5
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312ab7;
/* rgb */ color: rgb(49, 42, 183);
/* oklch */ color: oklch(40.6% 0.210 274.0);
Tailwind
colors: {
  custom: {
    50: '#7f66ce',
    500: '#312ab7',
    950: '#000000',
  },
}
SCSS
$custom: #312ab7;
$custom-light: #7f66ce;
$custom-dark: #000000;
JSON
{
  "hex": "#312ab7",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 242.979,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.40636,
    "c": 0.20953,
    "h": 274
  },
  "luminance": 0.05728
}

Semantic roles & 50–950 ramp

primary
#312AB7
secondary
#C5C974
accent
#E642DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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