#313182#313182

#313182 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.5% C 0.133 H 277.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#313182
RGBrgb(49, 49, 130)
HSLhsl(240, 45%, 35%)
HSVhsv(240, 62%, 51%)
CMYKcmyk(62.3%, 62.3%, 0%, 49%)
CIE-LABlab(25.14, 26.01, -45.78)
CIE-LCHlch(25.14, 52.66, 299.60°)
OKLaboklab(36.52% 0.0175 -0.1316)
OKLCHoklch(36.52% 0.133 277.6)
XYZxyz(6.3929, 4.4608, 21.6389)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313182 #828231
analogous
#315982 #313182 #593182
triadic
#313182 #823131 #318231
tetradic
#313182 #823159 #828231 #318259
square
#313182 #823159 #828231 #318259
split-complementary
#313182 #825931 #598231
monochromatic
#0F0F29 #202056 #313182 #4242AE #6868C6

Accessibility & contrast

On white

11.10
#313182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#313182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313182
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313182#FFFFFF#000000##FFFFFF
##3131821.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#003880
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313182;
/* rgb */ color: rgb(49, 49, 130);
/* oklch */ color: oklch(36.5% 0.133 277.6);
Tailwind
colors: {
  custom: {
    50: '#7269a7',
    500: '#313182',
    950: '#000000',
  },
}
SCSS
$custom: #313182;
$custom-light: #7269a7;
$custom-dark: #000000;
JSON
{
  "hex": "#313182",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 130
  },
  "hsl": {
    "h": 240,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36522,
    "c": 0.1328,
    "h": 277.6
  },
  "luminance": 0.04461
}

Semantic roles & 50–950 ramp

primary
#313182
secondary
#ADAD62
accent
#D553D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #313182

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

Preview Lab → · Contrast checker → · Palette generator →

#313182 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva