#313FC2#313FC2

#313FC2 is a dark, highly saturated blue. Relative luminance 0.081; OKLCH L 44.9% C 0.202 H 270.7°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#313FC2
RGBrgb(49, 63, 194)
HSLhsl(234, 60%, 48%)
HSVhsv(234, 75%, 76%)
CMYKcmyk(74.7%, 67.5%, 0%, 23.9%)
CIE-LABlab(34.19, 39.79, -69.71)
CIE-LCHlch(34.19, 80.27, 299.72°)
OKLaboklab(44.89% 0.0024 -0.2017)
OKLCHoklch(44.89% 0.202 270.7)
XYZxyz(12.7784, 8.1017, 51.9188)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FC2 #C2B431
analogous
#3187C2 #313FC2 #6C31C2
triadic
#313FC2 #C2313F #3FC231
tetradic
#313FC2 #C23187 #C2B431 #31C26C
square
#313FC2 #C23187 #C2B431 #31C26C
split-complementary
#313FC2 #C26C31 #87C231
monochromatic
#181F60 #252F91 #313FC2 #5B67D6 #8C94E2

Accessibility & contrast

On white

8.01
#313FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#313FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FC2
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FC2#FFFFFF#000000##FFFFFF
##313FC21.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#004AC0
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #313fc2;
/* rgb */ color: rgb(49, 63, 194);
/* oklch */ color: oklch(44.9% 0.202 270.7);
Tailwind
colors: {
  custom: {
    50: '#7f74d6',
    500: '#313fc2',
    950: '#000000',
  },
}
SCSS
$custom: #313fc2;
$custom-light: #7f74d6;
$custom-dark: #000000;
JSON
{
  "hex": "#313fc2",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 194
  },
  "hsl": {
    "h": 234.207,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44886,
    "c": 0.20169,
    "h": 270.7
  },
  "luminance": 0.08103
}

Semantic roles & 50–950 ramp

primary
#313FC2
secondary
#CCC583
accent
#D445E3
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #313FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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