#313EE2#313EE2

#313EE2 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.9% C 0.242 H 269.8°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#313EE2
RGBrgb(49, 62, 226)
HSLhsl(236, 75%, 54%)
HSVhsv(236, 78%, 89%)
CMYKcmyk(78.3%, 72.6%, 0%, 11.4%)
CIE-LABlab(37.09, 51.27, -83.43)
CIE-LCHlch(37.09, 97.93, 301.57°)
OKLaboklab(47.91% -0.0008 -0.2417)
OKLCHoklch(47.91% 0.242 269.8)
XYZxyz(16.7120, 9.5873, 72.9065)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EE2 #E2D531
analogous
#3197E2 #313EE2 #7D31E2
triadic
#313EE2 #E2313E #3EE231
tetradic
#313EE2 #E23197 #E2D531 #31E27D
square
#313EE2 #E23197 #E2D531 #31E27D
split-complementary
#313EE2 #E27D31 #97E231
monochromatic
#131B86 #1A26BB #313EE2 #6770EA #9CA3F1

Accessibility & contrast

On white

7.20
#313EE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#313EE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EE2
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EE2#FFFFFF#000000##FFFFFF
##313EE21.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E7
Deuteranopia (green-blind)
#004EDF
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #313ee2;
/* rgb */ color: rgb(49, 62, 226);
/* oklch */ color: oklch(47.9% 0.242 269.8);
Tailwind
colors: {
  custom: {
    50: '#8775ed',
    500: '#313ee2',
    950: '#000000',
  },
}
SCSS
$custom: #313ee2;
$custom-light: #8775ed;
$custom-dark: #000000;
JSON
{
  "hex": "#313ee2",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 226
  },
  "hsl": {
    "h": 235.593,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.47906,
    "c": 0.24168,
    "h": 269.8
  },
  "luminance": 0.09589
}

Semantic roles & 50–950 ramp

primary
#313EE2
secondary
#DDD892
accent
#E436F2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #313EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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