#313FC5#313FC5

#313FC5 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.2% C 0.205 H 270.6°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#313FC5
RGBrgb(49, 63, 197)
HSLhsl(234, 60%, 48%)
HSVhsv(234, 75%, 77%)
CMYKcmyk(75.1%, 68%, 0%, 22.7%)
CIE-LABlab(34.47, 40.84, -71.00)
CIE-LCHlch(34.47, 81.91, 299.91°)
OKLaboklab(45.17% 0.0022 -0.2055)
OKLCHoklch(45.17% 0.205 270.6)
XYZxyz(13.1187, 8.2378, 53.7112)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FC5 #C5B731
analogous
#3189C5 #313FC5 #6D31C5
triadic
#313FC5 #C5313F #3FC531
tetradic
#313FC5 #C53189 #C5B731 #31C56D
square
#313FC5 #C53189 #C5B731 #31C56D
split-complementary
#313FC5 #C56D31 #89C531
monochromatic
#192063 #252F94 #313FC5 #5D68D7 #8E96E3

Accessibility & contrast

On white

7.93
#313FC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#313FC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FC5
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FC5#FFFFFF#000000##FFFFFF
##313FC51.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#004AC3
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #313fc5;
/* rgb */ color: rgb(49, 63, 197);
/* oklch */ color: oklch(45.2% 0.205 270.6);
Tailwind
colors: {
  custom: {
    50: '#8074d8',
    500: '#313fc5',
    950: '#000000',
  },
}
SCSS
$custom: #313fc5;
$custom-light: #8074d8;
$custom-dark: #000000;
JSON
{
  "hex": "#313fc5",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 197
  },
  "hsl": {
    "h": 234.324,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45174,
    "c": 0.20548,
    "h": 270.6
  },
  "luminance": 0.08239
}

Semantic roles & 50–950 ramp

primary
#313FC5
secondary
#CDC685
accent
#D444E3
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #313FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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