#313FE2#313FE2

#313FE2 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 48.0% C 0.241 H 269.7°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#313FE2
RGBrgb(49, 63, 226)
HSLhsl(235, 75%, 54%)
HSVhsv(235, 78%, 89%)
CMYKcmyk(78.3%, 72.1%, 0%, 11.4%)
CIE-LABlab(37.29, 50.71, -83.10)
CIE-LCHlch(37.29, 97.35, 301.39°)
OKLaboklab(48.05% -0.0012 -0.2407)
OKLCHoklch(48.05% 0.241 269.7)
XYZxyz(16.7669, 9.6971, 72.9248)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FE2 #E2D431
analogous
#3198E2 #313FE2 #7C31E2
triadic
#313FE2 #E2313F #3FE231
tetradic
#313FE2 #E23198 #E2D431 #31E27C
square
#313FE2 #E23198 #E2D431 #31E27C
split-complementary
#313FE2 #E27C31 #98E231
monochromatic
#131C86 #1A27BB #313FE2 #6771EA #9CA3F1

Accessibility & contrast

On white

7.14
#313FE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#313FE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FE2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FE2#FFFFFF#000000##FFFFFF
##313FE21.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313fe2;
/* rgb */ color: rgb(49, 63, 226);
/* oklch */ color: oklch(48.0% 0.241 269.7);
Tailwind
colors: {
  custom: {
    50: '#8775ed',
    500: '#313fe2',
    950: '#000000',
  },
}
SCSS
$custom: #313fe2;
$custom-light: #8775ed;
$custom-dark: #000000;
JSON
{
  "hex": "#313fe2",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 226
  },
  "hsl": {
    "h": 235.254,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.4805,
    "c": 0.24072,
    "h": 269.7
  },
  "luminance": 0.09699
}

Semantic roles & 50–950 ramp

primary
#313FE2
secondary
#DDD792
accent
#E336F2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #313FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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