#312AA3#312AA3

#312AA3 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.185 H 275.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#312AA3
RGBrgb(49, 42, 163)
HSLhsl(243, 59%, 40%)
HSVhsv(243, 74%, 64%)
CMYKcmyk(69.9%, 74.2%, 0%, 36.1%)
CIE-LABlab(26.60, 41.75, -63.74)
CIE-LCHlch(26.60, 76.20, 303.22°)
OKLaboklab(38.52% 0.0187 -0.1842)
OKLCHoklch(38.52% 0.185 275.8)
XYZxyz(8.7033, 4.9524, 35.1405)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AA3 #9CA32A
analogous
#2A60A3 #312AA3 #6D2AA3
triadic
#312AA3 #A3312A #2AA331
tetradic
#312AA3 #A32A60 #9CA32A #2AA36D
square
#312AA3 #A32A60 #9CA32A #2AA36D
split-complementary
#312AA3 #A36D2A #60A32A
monochromatic
#141142 #221D72 #312AA3 #453DCD #746EDA

Accessibility & contrast

On white

10.55
#312AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#312AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AA3
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AA3#FFFFFF#000000##FFFFFF
##312AA31.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#0039A1
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #312aa3;
/* rgb */ color: rgb(49, 42, 163);
/* oklch */ color: oklch(38.5% 0.185 275.8);
Tailwind
colors: {
  custom: {
    50: '#7a65bf',
    500: '#312aa3',
    950: '#000000',
  },
}
SCSS
$custom: #312aa3;
$custom-light: #7a65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#312aa3",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 243.471,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38516,
    "c": 0.18519,
    "h": 275.8
  },
  "luminance": 0.04953
}

Semantic roles & 50–950 ramp

primary
#312AA3
secondary
#BBC068
accent
#E246D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #312AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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