#313FC0#313FC0

#313FC0 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.7% C 0.199 H 270.8°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#313FC0
RGBrgb(49, 63, 192)
HSLhsl(234, 59%, 47%)
HSVhsv(234, 74%, 75%)
CMYKcmyk(74.5%, 67.2%, 0%, 24.7%)
CIE-LABlab(34.01, 39.09, -68.84)
CIE-LCHlch(34.01, 79.16, 299.59°)
OKLaboklab(44.7% 0.0026 -0.1991)
OKLCHoklch(44.7% 0.199 270.8)
XYZxyz(12.5553, 8.0124, 50.7438)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FC0 #C0B231
analogous
#3186C0 #313FC0 #6B31C0
triadic
#313FC0 #C0313F #3FC031
tetradic
#313FC0 #C03186 #C0B231 #31C06B
square
#313FC0 #C03186 #C0B231 #31C06B
split-complementary
#313FC0 #C06B31 #86C031
monochromatic
#181F5E #252F8F #313FC0 #5966D5 #8A93E1

Accessibility & contrast

On white

8.07
#313FC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#313FC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FC0
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FC0#FFFFFF#000000##FFFFFF
##313FC01.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0049BE
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #313fc0;
/* rgb */ color: rgb(49, 63, 192);
/* oklch */ color: oklch(44.7% 0.199 270.8);
Tailwind
colors: {
  custom: {
    50: '#7f74d4',
    500: '#313fc0',
    950: '#000000',
  },
}
SCSS
$custom: #313fc0;
$custom-light: #7f74d4;
$custom-dark: #000000;
JSON
{
  "hex": "#313fc0",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 192
  },
  "hsl": {
    "h": 234.126,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44696,
    "c": 0.19916,
    "h": 270.8
  },
  "luminance": 0.08014
}

Semantic roles & 50–950 ramp

primary
#313FC0
secondary
#CBC482
accent
#D345E3
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #313FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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