#312CB4#312CB4

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

Color values

HEX#312CB4
RGBrgb(49, 44, 180)
HSLhsl(242, 61%, 44%)
HSVhsv(242, 76%, 71%)
CMYKcmyk(72.8%, 75.6%, 0%, 29.4%)
CIE-LABlab(28.77, 46.20, -70.38)
CIE-LCHlch(28.77, 84.18, 303.28°)
OKLaboklab(40.58% 0.0143 -0.2036)
OKLCHoklch(40.58% 0.204 274)
XYZxyz(10.4028, 5.7486, 43.7325)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CB4 #AFB42C
analogous
#2C6BB4 #312CB4 #752CB4
triadic
#312CB4 #B4312C #2CB431
tetradic
#312CB4 #B42C6B #AFB42C #2CB475
square
#312CB4 #B42C6B #AFB42C #2CB475
split-complementary
#312CB4 #B4752C #6BB42C
monochromatic
#161452 #242083 #312CB4 #4F4AD3 #7F7CDF

Accessibility & contrast

On white

9.77
#312CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312CB4
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CB4#FFFFFF#000000##FFFFFF
##312CB41.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#003DB2
Tritanopia (blue-blind)
#00546E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312cb4;
/* rgb */ color: rgb(49, 44, 180);
/* oklch */ color: oklch(40.6% 0.204 274.0);
Tailwind
colors: {
  custom: {
    50: '#7e67cc',
    500: '#312cb4',
    950: '#000000',
  },
}
SCSS
$custom: #312cb4;
$custom-light: #7e67cc;
$custom-dark: #000000;
JSON
{
  "hex": "#312cb4",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 180
  },
  "hsl": {
    "h": 242.206,
    "s": 60.714,
    "l": 43.922
  },
  "oklch": {
    "l": 0.40581,
    "c": 0.20407,
    "h": 274
  },
  "luminance": 0.0575
}

Semantic roles & 50–950 ramp

primary
#312CB4
secondary
#C4C775
accent
#E444DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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