#313183#313183

#313183 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.134 H 277.5°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#313183
RGBrgb(49, 49, 131)
HSLhsl(240, 46%, 35%)
HSVhsv(240, 63%, 51%)
CMYKcmyk(62.6%, 62.6%, 0%, 48.6%)
CIE-LABlab(25.22, 26.37, -46.28)
CIE-LCHlch(25.22, 53.26, 299.68°)
OKLaboklab(36.61% 0.0175 -0.1331)
OKLCHoklch(36.61% 0.134 277.5)
XYZxyz(6.4604, 4.4878, 21.9941)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313183 #838331
analogous
#315A83 #313183 #5A3183
triadic
#313183 #833131 #318331
tetradic
#313183 #83315A #838331 #31835A
square
#313183 #83315A #838331 #31835A
split-complementary
#313183 #835A31 #5A8331
monochromatic
#10102A #202056 #313183 #4242B0 #6868C6

Accessibility & contrast

On white

11.07
#313183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#313183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313183
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313183#FFFFFF#000000##FFFFFF
##3131831.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F86
Deuteranopia (green-blind)
#003881
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313183;
/* rgb */ color: rgb(49, 49, 131);
/* oklch */ color: oklch(36.6% 0.134 277.5);
Tailwind
colors: {
  custom: {
    50: '#7369a8',
    500: '#313183',
    950: '#000000',
  },
}
SCSS
$custom: #313183;
$custom-light: #7369a8;
$custom-dark: #000000;
JSON
{
  "hex": "#313183",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 131
  },
  "hsl": {
    "h": 240,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36609,
    "c": 0.13423,
    "h": 277.5
  },
  "luminance": 0.04488
}

Semantic roles & 50–950 ramp

primary
#313183
secondary
#AEAE62
accent
#D553D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313183

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

Preview Lab → · Contrast checker → · Palette generator →

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