#313ACA#313ACA

#313ACA is a dark, highly saturated blue. Relative luminance 0.079; OKLCH L 44.9% C 0.217 H 271.1°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#313ACA
RGBrgb(49, 58, 202)
HSLhsl(236, 61%, 49%)
HSVhsv(236, 76%, 79%)
CMYKcmyk(75.7%, 71.3%, 0%, 20.8%)
CIE-LABlab(33.86, 45.55, -74.93)
CIE-LCHlch(33.86, 87.69, 301.29°)
OKLaboklab(44.88% 0.0041 -0.2169)
OKLCHoklch(44.88% 0.217 271.1)
XYZxyz(13.4367, 7.9419, 56.6904)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313ACA #CAC131
analogous
#3186CA #313ACA #7531CA
triadic
#313ACA #CA313A #3ACA31
tetradic
#313ACA #CA3186 #CAC131 #31CA75
square
#313ACA #CA3186 #CAC131 #31CA75
split-complementary
#313ACA #CA7531 #86CA31
monochromatic
#191E67 #252C99 #313ACA #6067D8 #9196E4

Accessibility & contrast

On white

8.11
#313ACA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#313ACA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313ACA
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313ACA#FFFFFF#000000##FFFFFF
##313ACA1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#0048C7
Tritanopia (blue-blind)
#00637E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #313aca;
/* rgb */ color: rgb(49, 58, 202);
/* oklch */ color: oklch(44.9% 0.217 271.1);
Tailwind
colors: {
  custom: {
    50: '#8271db',
    500: '#313aca',
    950: '#000000',
  },
}
SCSS
$custom: #313aca;
$custom-light: #8271db;
$custom-dark: #000000;
JSON
{
  "hex": "#313aca",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 202
  },
  "hsl": {
    "h": 236.471,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.44878,
    "c": 0.21695,
    "h": 271.1
  },
  "luminance": 0.07943
}

Semantic roles & 50–950 ramp

primary
#313ACA
secondary
#CFCB88
accent
#DB44E4
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #313ACA

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

Preview Lab → · Contrast checker → · Palette generator →

#313ACA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva