#313DE2#313DE2

#313DE2 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.8% C 0.243 H 269.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#313DE2
RGBrgb(49, 61, 226)
HSLhsl(236, 75%, 54%)
HSVhsv(236, 78%, 89%)
CMYKcmyk(78.3%, 73%, 0%, 11.4%)
CIE-LABlab(36.89, 51.83, -83.76)
CIE-LCHlch(36.89, 98.50, 301.75°)
OKLaboklab(47.76% -0.0005 -0.2426)
OKLCHoklch(47.76% 0.243 269.9)
XYZxyz(16.6581, 9.4795, 72.8885)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DE2 #E2D631
analogous
#3196E2 #313DE2 #7E31E2
triadic
#313DE2 #E2313D #3DE231
tetradic
#313DE2 #E23196 #E2D631 #31E27E
square
#313DE2 #E23196 #E2D631 #31E27E
split-complementary
#313DE2 #E27E31 #96E231
monochromatic
#131B86 #1A25BB #313DE2 #6770EA #9CA2F1

Accessibility & contrast

On white

7.25
#313DE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#313DE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DE2
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DE2#FFFFFF#000000##FFFFFF
##313DE21.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313de2;
/* rgb */ color: rgb(49, 61, 226);
/* oklch */ color: oklch(47.8% 0.243 269.9);
Tailwind
colors: {
  custom: {
    50: '#8774ed',
    500: '#313de2',
    950: '#000000',
  },
}
SCSS
$custom: #313de2;
$custom-light: #8774ed;
$custom-dark: #000000;
JSON
{
  "hex": "#313de2",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 226
  },
  "hsl": {
    "h": 235.932,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.47763,
    "c": 0.24263,
    "h": 269.9
  },
  "luminance": 0.09481
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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