#313EE3#313EE3

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

Color values

HEX#313EE3
RGBrgb(49, 62, 227)
HSLhsl(236, 76%, 54%)
HSVhsv(236, 78%, 89%)
CMYKcmyk(78.4%, 72.7%, 0%, 11%)
CIE-LABlab(37.19, 51.60, -83.84)
CIE-LCHlch(37.19, 98.44, 301.61°)
OKLaboklab(48.01% -0.001 -0.2428)
OKLCHoklch(48.01% 0.243 269.8)
XYZxyz(16.8496, 9.6423, 73.6313)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EE3 #E3D631
analogous
#3197E3 #313EE3 #7D31E3
triadic
#313EE3 #E3313E #3EE331
tetradic
#313EE3 #E33197 #E3D631 #31E37D
square
#313EE3 #E33197 #E3D631 #31E37D
split-complementary
#313EE3 #E37D31 #97E331
monochromatic
#121B87 #1A26BD #313EE3 #6770EA #9DA3F2

Accessibility & contrast

On white

7.17
#313EE3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#313EE3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EE3
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EE3#FFFFFF#000000##FFFFFF
##313EE31.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313ee3;
/* rgb */ color: rgb(49, 62, 227);
/* oklch */ color: oklch(48.0% 0.243 269.8);
Tailwind
colors: {
  custom: {
    50: '#8775ed',
    500: '#313ee3',
    950: '#000000',
  },
}
SCSS
$custom: #313ee3;
$custom-light: #8775ed;
$custom-dark: #000000;
JSON
{
  "hex": "#313ee3",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 227
  },
  "hsl": {
    "h": 235.618,
    "s": 76.068,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48008,
    "c": 0.24285,
    "h": 269.8
  },
  "luminance": 0.09644
}

Semantic roles & 50–950 ramp

primary
#313EE3
secondary
#DED892
accent
#E535F3
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0817
muted
#7E7B85

Preview Lab

Preview with #313EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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