#312CA8#312CA8

#312CA8 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.3% C 0.189 H 275.0°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#312CA8
RGBrgb(49, 44, 168)
HSLhsl(242, 58%, 42%)
HSVhsv(242, 74%, 66%)
CMYKcmyk(70.8%, 73.8%, 0%, 34.1%)
CIE-LABlab(27.52, 42.26, -65.25)
CIE-LCHlch(27.52, 77.74, 302.93°)
OKLaboklab(39.32% 0.0166 -0.1886)
OKLCHoklch(39.32% 0.189 275)
XYZxyz(9.2329, 5.2806, 37.5709)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312CA8 #A3A82C
analogous
#2C65A8 #312CA8 #6F2CA8
triadic
#312CA8 #A8312C #2CA831
tetradic
#312CA8 #A82C65 #A3A82C #2CA86F
square
#312CA8 #A82C65 #A3A82C #2CA86F
split-complementary
#312CA8 #A86F2C #65A82C
monochromatic
#151347 #231F78 #312CA8 #4943CE #7874DB

Accessibility & contrast

On white

10.21
#312CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#312CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312CA8
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312CA8#FFFFFF#000000##FFFFFF
##312CA81.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #312ca8;
/* rgb */ color: rgb(49, 44, 168);
/* oklch */ color: oklch(39.3% 0.189 275.0);
Tailwind
colors: {
  custom: {
    50: '#7b67c3',
    500: '#312ca8',
    950: '#000000',
  },
}
SCSS
$custom: #312ca8;
$custom-light: #7b67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#312ca8",
  "rgb": {
    "r": 49,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 242.419,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39323,
    "c": 0.18936,
    "h": 275
  },
  "luminance": 0.05281
}

Semantic roles & 50–950 ramp

primary
#312CA8
secondary
#BFC26E
accent
#E246DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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