#313281#313281

#313281 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.130 H 277.3°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#313281
RGBrgb(49, 50, 129)
HSLhsl(239, 45%, 35%)
HSVhsv(239, 62%, 51%)
CMYKcmyk(62%, 61.2%, 0%, 49.4%)
CIE-LABlab(25.32, 24.99, -44.87)
CIE-LCHlch(25.32, 51.36, 299.12°)
OKLaboklab(36.63% 0.0165 -0.1289)
OKLCHoklch(36.63% 0.13 277.3)
XYZxyz(6.3684, 4.5187, 21.3012)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313281 #818031
analogous
#315A81 #313281 #583181
triadic
#313281 #813132 #328131
tetradic
#313281 #81315A #818031 #318158
square
#313281 #81315A #818031 #318158
split-complementary
#313281 #815831 #5A8131
monochromatic
#0F1028 #202155 #313281 #4243AD #6768C5

Accessibility & contrast

On white

11.03
#313281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#313281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313281
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313281#FFFFFF#000000##FFFFFF
##3132811.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#00397F
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313281;
/* rgb */ color: rgb(49, 50, 129);
/* oklch */ color: oklch(36.6% 0.130 277.3);
Tailwind
colors: {
  custom: {
    50: '#726aa6',
    500: '#313281',
    950: '#000000',
  },
}
SCSS
$custom: #313281;
$custom-light: #726aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#313281",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 129
  },
  "hsl": {
    "h": 239.25,
    "s": 44.944,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36627,
    "c": 0.12999,
    "h": 277.3
  },
  "luminance": 0.04519
}

Semantic roles & 50–950 ramp

primary
#313281
secondary
#ADAC61
accent
#D353D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #313281

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

Preview Lab → · Contrast checker → · Palette generator →

#313281 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva