#312AB2#312AB2

#312AB2 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.204 H 274.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#312AB2
RGBrgb(49, 42, 178)
HSLhsl(243, 62%, 43%)
HSVhsv(243, 76%, 70%)
CMYKcmyk(72.5%, 76.4%, 0%, 30.2%)
CIE-LABlab(28.17, 46.64, -70.17)
CIE-LCHlch(28.17, 84.25, 303.61°)
OKLaboklab(40.1% 0.0156 -0.2029)
OKLCHoklch(40.1% 0.204 274.4)
XYZxyz(10.1278, 5.5222, 42.6430)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AB2 #ABB22A
analogous
#2A67B2 #312AB2 #752AB2
triadic
#312AB2 #B2312A #2AB231
tetradic
#312AB2 #B22A67 #ABB22A #2AB275
square
#312AB2 #B22A67 #ABB22A #2AB275
split-complementary
#312AB2 #B2752A #67B22A
monochromatic
#16134F #231E80 #312AB2 #4D46D3 #7D77DF

Accessibility & contrast

On white

9.98
#312AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#312AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AB2
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AB2#FFFFFF#000000##FFFFFF
##312AB21.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#003CB0
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #312ab2;
/* rgb */ color: rgb(49, 42, 178);
/* oklch */ color: oklch(40.1% 0.204 274.4);
Tailwind
colors: {
  custom: {
    50: '#7d66ca',
    500: '#312ab2',
    950: '#000000',
  },
}
SCSS
$custom: #312ab2;
$custom-light: #7d66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#312ab2",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 243.088,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40098,
    "c": 0.20355,
    "h": 274.4
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#312AB2
secondary
#C2C771
accent
#E543DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #312AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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