#313BB4#313BB4

#313BB4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.9% C 0.188 H 271.9°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#313BB4
RGBrgb(49, 59, 180)
HSLhsl(235, 57%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(72.8%, 67.2%, 0%, 29.4%)
CIE-LABlab(31.98, 37.35, -65.09)
CIE-LCHlch(31.98, 75.05, 299.85°)
OKLaboklab(42.88% 0.0061 -0.1882)
OKLCHoklch(42.88% 0.188 271.9)
XYZxyz(11.0660, 7.0751, 43.9536)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BB4 #B4AA31
analogous
#317CB4 #313BB4 #6931B4
triadic
#313BB4 #B4313B #3BB431
tetradic
#313BB4 #B4317C #B4AA31 #31B469
square
#313BB4 #B4317C #B4AA31 #31B469
split-complementary
#313BB4 #B46931 #7CB431
monochromatic
#171B54 #242B84 #313BB4 #525CD0 #8289DD

Accessibility & contrast

On white

8.69
#313BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#313BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BB4
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BB4#FFFFFF#000000##FFFFFF
##313BB41.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313bb4;
/* rgb */ color: rgb(49, 59, 180);
/* oklch */ color: oklch(42.9% 0.188 271.9);
Tailwind
colors: {
  custom: {
    50: '#7c71cc',
    500: '#313bb4',
    950: '#000000',
  },
}
SCSS
$custom: #313bb4;
$custom-light: #7c71cc;
$custom-dark: #000000;
JSON
{
  "hex": "#313bb4",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 180
  },
  "hsl": {
    "h": 235.42,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42882,
    "c": 0.1883,
    "h": 271.9
  },
  "luminance": 0.07076
}

Semantic roles & 50–950 ramp

primary
#313BB4
secondary
#C6C07B
accent
#D547E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #313BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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