#313BE2#313BE2

#313BE2 is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.5% C 0.244 H 270.1°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#313BE2
RGBrgb(49, 59, 226)
HSLhsl(237, 75%, 54%)
HSVhsv(237, 78%, 89%)
CMYKcmyk(78.3%, 73.9%, 0%, 11.4%)
CIE-LABlab(36.50, 52.94, -84.41)
CIE-LCHlch(36.50, 99.64, 302.09°)
OKLaboklab(47.48% 0.0002 -0.2445)
OKLCHoklch(47.48% 0.245 270.1)
XYZxyz(16.5534, 9.2700, 72.8536)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BE2 #E2D831
analogous
#3194E2 #313BE2 #8031E2
triadic
#313BE2 #E2313B #3BE231
tetradic
#313BE2 #E23194 #E2D831 #31E280
square
#313BE2 #E23194 #E2D831 #31E280
split-complementary
#313BE2 #E28031 #94E231
monochromatic
#131986 #1A23BB #313BE2 #676EEA #9CA1F1

Accessibility & contrast

On white

7.36
#313BE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#313BE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BE2
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BE2#FFFFFF#000000##FFFFFF
##313BE21.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313be2;
/* rgb */ color: rgb(49, 59, 226);
/* oklch */ color: oklch(47.5% 0.244 270.1);
Tailwind
colors: {
  custom: {
    50: '#8773ed',
    500: '#313be2',
    950: '#000000',
  },
}
SCSS
$custom: #313be2;
$custom-light: #8773ed;
$custom-dark: #000000;
JSON
{
  "hex": "#313be2",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 226
  },
  "hsl": {
    "h": 236.61,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.47484,
    "c": 0.2445,
    "h": 270.1
  },
  "luminance": 0.09272
}

Semantic roles & 50–950 ramp

primary
#313BE2
secondary
#DDD992
accent
#E736F2
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #313BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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