#313293#313293

#313293 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.155 H 275.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#313293
RGBrgb(49, 50, 147)
HSLhsl(239, 50%, 38%)
HSVhsv(239, 67%, 58%)
CMYKcmyk(66.7%, 66%, 0%, 42.4%)
CIE-LABlab(26.85, 31.39, -53.56)
CIE-LCHlch(26.85, 62.08, 300.38°)
OKLaboklab(38.23% 0.0155 -0.1545)
OKLCHoklch(38.23% 0.155 275.7)
XYZxyz(7.6720, 5.0401, 28.1666)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313293 #939231
analogous
#316393 #313293 #613193
triadic
#313293 #933132 #329331
tetradic
#313293 #933163 #939231 #319361
square
#313293 #933163 #939231 #319361
split-complementary
#313293 #936131 #639331
monochromatic
#121337 #222265 #313293 #4143C0 #6F70CF

Accessibility & contrast

On white

10.46
#313293 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313293 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313293
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313293#FFFFFF#000000##FFFFFF
##3132931.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004496
Deuteranopia (green-blind)
#003B91
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313293;
/* rgb */ color: rgb(49, 50, 147);
/* oklch */ color: oklch(38.2% 0.155 275.7);
Tailwind
colors: {
  custom: {
    50: '#766ab4',
    500: '#313293',
    950: '#000000',
  },
}
SCSS
$custom: #313293;
$custom-light: #766ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#313293",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 147
  },
  "hsl": {
    "h": 239.388,
    "s": 50,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38229,
    "c": 0.15524,
    "h": 275.7
  },
  "luminance": 0.05041
}

Semantic roles & 50–950 ramp

primary
#313293
secondary
#B7B669
accent
#D84EDA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #313293

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

Preview Lab → · Contrast checker → · Palette generator →

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