#313283#313283

#313283 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.133 H 277.1°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#313283
RGBrgb(49, 50, 131)
HSLhsl(239, 46%, 35%)
HSVhsv(239, 63%, 51%)
CMYKcmyk(62.6%, 61.8%, 0%, 48.6%)
CIE-LABlab(25.48, 25.70, -45.86)
CIE-LCHlch(25.48, 52.57, 299.27°)
OKLaboklab(36.8% 0.0165 -0.1318)
OKLCHoklch(36.8% 0.133 277.1)
XYZxyz(6.5026, 4.5724, 22.0082)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313283 #838231
analogous
#315B83 #313283 #593183
triadic
#313283 #833132 #328331
tetradic
#313283 #83315B #838231 #318359
square
#313283 #83315B #838231 #318359
split-complementary
#313283 #835931 #5B8331
monochromatic
#10102A #202156 #313283 #4243B0 #6869C6

Accessibility & contrast

On white

10.97
#313283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#313283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313283
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313283#FFFFFF#000000##FFFFFF
##3132831.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004086
Deuteranopia (green-blind)
#003981
Tritanopia (blue-blind)
#004655
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313283;
/* rgb */ color: rgb(49, 50, 131);
/* oklch */ color: oklch(36.8% 0.133 277.1);
Tailwind
colors: {
  custom: {
    50: '#726aa8',
    500: '#313283',
    950: '#000000',
  },
}
SCSS
$custom: #313283;
$custom-light: #726aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#313283",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 131
  },
  "hsl": {
    "h": 239.268,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36799,
    "c": 0.13287,
    "h": 277.1
  },
  "luminance": 0.04573
}

Semantic roles & 50–950 ramp

primary
#313283
secondary
#AEAD62
accent
#D453D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313283

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

Preview Lab → · Contrast checker → · Palette generator →

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