#314DE2#314DE2

#314DE2 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.2% C 0.226 H 268.2°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#314DE2
RGBrgb(49, 77, 226)
HSLhsl(231, 75%, 54%)
HSVhsv(231, 78%, 89%)
CMYKcmyk(78.3%, 65.9%, 0%, 11.4%)
CIE-LABlab(40.33, 42.43, -78.10)
CIE-LCHlch(40.33, 88.88, 298.51°)
OKLaboklab(50.24% -0.0072 -0.2261)
OKLCHoklch(50.24% 0.226 268.2)
XYZxyz(17.6432, 11.4497, 73.2169)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314DE2 #E2C631
analogous
#31A6E2 #314DE2 #6E31E2
triadic
#314DE2 #E2314D #4DE231
tetradic
#314DE2 #E231A6 #E2C631 #31E26E
square
#314DE2 #E231A6 #E2C631 #31E26E
split-complementary
#314DE2 #E26E31 #A6E231
monochromatic
#132586 #1A34BB #314DE2 #677BEA #9CAAF1

Accessibility & contrast

On white

6.38
#314DE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#314DE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #314DE2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314DE2#FFFFFF#000000##FFFFFF
##314DE21.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0057DF
Tritanopia (blue-blind)
#007591
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #314de2;
/* rgb */ color: rgb(49, 77, 226);
/* oklch */ color: oklch(50.2% 0.226 268.2);
Tailwind
colors: {
  custom: {
    50: '#867fec',
    500: '#314de2',
    950: '#000000',
  },
}
SCSS
$custom: #314de2;
$custom-light: #867fec;
$custom-dark: #000000;
JSON
{
  "hex": "#314de2",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 226
  },
  "hsl": {
    "h": 230.508,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50244,
    "c": 0.22626,
    "h": 268.2
  },
  "luminance": 0.11452
}

Semantic roles & 50–950 ramp

primary
#314DE2
secondary
#DDD192
accent
#D436F2
background
#F9F7FE
surface
#F1EEFD
border
#CBC9D5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #314DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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