#313CE2#313CE2

#313CE2 is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.6% C 0.244 H 270.0°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#313CE2
RGBrgb(49, 60, 226)
HSLhsl(236, 75%, 54%)
HSVhsv(236, 78%, 89%)
CMYKcmyk(78.3%, 73.5%, 0%, 11.4%)
CIE-LABlab(36.69, 52.39, -84.09)
CIE-LCHlch(36.69, 99.07, 301.92°)
OKLaboklab(47.62% -0.0001 -0.2436)
OKLCHoklch(47.62% 0.244 270)
XYZxyz(16.6053, 9.3738, 72.8709)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CE2 #E2D731
analogous
#3195E2 #313CE2 #7F31E2
triadic
#313CE2 #E2313C #3CE231
tetradic
#313CE2 #E23195 #E2D731 #31E27F
square
#313CE2 #E23195 #E2D731 #31E27F
split-complementary
#313CE2 #E27F31 #95E231
monochromatic
#131A86 #1A24BB #313CE2 #676FEA #9CA2F1

Accessibility & contrast

On white

7.30
#313CE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#313CE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CE2
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CE2#FFFFFF#000000##FFFFFF
##313CE21.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FE7
Deuteranopia (green-blind)
#004DDF
Tritanopia (blue-blind)
#006D8C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #313ce2;
/* rgb */ color: rgb(49, 60, 226);
/* oklch */ color: oklch(47.6% 0.244 270.0);
Tailwind
colors: {
  custom: {
    50: '#8773ed',
    500: '#313ce2',
    950: '#000000',
  },
}
SCSS
$custom: #313ce2;
$custom-light: #8773ed;
$custom-dark: #000000;
JSON
{
  "hex": "#313ce2",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 226
  },
  "hsl": {
    "h": 236.271,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.47623,
    "c": 0.24357,
    "h": 270
  },
  "luminance": 0.09376
}

Semantic roles & 50–950 ramp

primary
#313CE2
secondary
#DDD892
accent
#E636F2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #313CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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