#312DC5#312DC5

#312DC5 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.5% C 0.223 H 272.7°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#312DC5
RGBrgb(49, 45, 197)
HSLhsl(242, 63%, 47%)
HSVhsv(242, 77%, 77%)
CMYKcmyk(75.1%, 77.2%, 0%, 22.7%)
CIE-LABlab(30.78, 51.12, -77.09)
CIE-LCHlch(30.78, 92.50, 303.55°)
OKLaboklab(42.54% 0.0104 -0.2231)
OKLCHoklch(42.54% 0.223 272.7)
XYZxyz(12.2797, 6.5597, 53.4315)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DC5 #C1C52D
analogous
#2D75C5 #312DC5 #7D2DC5
triadic
#312DC5 #C5312D #2DC531
tetradic
#312DC5 #C52D75 #C1C52D #2DC57D
square
#312DC5 #C52D75 #C1C52D #2DC57D
split-complementary
#312DC5 #C57D2D #75C52D
monochromatic
#181661 #252293 #312DC5 #5A57D9 #8B88E4

Accessibility & contrast

On white

9.08
#312DC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#312DC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DC5
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DC5#FFFFFF#000000##FFFFFF
##312DC51.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C9
Deuteranopia (green-blind)
#0041C2
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #312dc5;
/* rgb */ color: rgb(49, 45, 197);
/* oklch */ color: oklch(42.5% 0.223 272.7);
Tailwind
colors: {
  custom: {
    50: '#8269d8',
    500: '#312dc5',
    950: '#000000',
  },
}
SCSS
$custom: #312dc5;
$custom-light: #8269d8;
$custom-dark: #000000;
JSON
{
  "hex": "#312dc5",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 197
  },
  "hsl": {
    "h": 241.579,
    "s": 62.81,
    "l": 47.451
  },
  "oklch": {
    "l": 0.42538,
    "c": 0.22335,
    "h": 272.7
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#312DC5
secondary
#CCCE80
accent
#E642E2
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #312DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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