#313289#313289

#313289 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.141 H 276.6°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#313289
RGBrgb(49, 50, 137)
HSLhsl(239, 47%, 36%)
HSVhsv(239, 64%, 54%)
CMYKcmyk(64.2%, 63.5%, 0%, 46.3%)
CIE-LABlab(25.98, 27.84, -48.79)
CIE-LCHlch(25.98, 56.17, 299.71°)
OKLaboklab(37.32% 0.0162 -0.1405)
OKLCHoklch(37.32% 0.141 276.6)
XYZxyz(6.9211, 4.7398, 24.2122)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313289 #898831
analogous
#315E89 #313289 #5C3189
triadic
#313289 #893132 #328931
tetradic
#313289 #89315E #898831 #31895C
square
#313289 #89315E #898831 #31895C
split-complementary
#313289 #895C31 #5E8931
monochromatic
#11112F #21225C #313289 #4142B6 #6B6CCA

Accessibility & contrast

On white

10.78
#313289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#313289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313289
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313289#FFFFFF#000000##FFFFFF
##3132891.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418C
Deuteranopia (green-blind)
#003A87
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313289;
/* rgb */ color: rgb(49, 50, 137);
/* oklch */ color: oklch(37.3% 0.141 276.6);
Tailwind
colors: {
  custom: {
    50: '#746aac',
    500: '#313289',
    950: '#000000',
  },
}
SCSS
$custom: #313289;
$custom-light: #746aac;
$custom-dark: #000000;
JSON
{
  "hex": "#313289",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 137
  },
  "hsl": {
    "h": 239.318,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37324,
    "c": 0.1414,
    "h": 276.6
  },
  "luminance": 0.0474
}

Semantic roles & 50–950 ramp

primary
#313289
secondary
#B1B064
accent
#D551D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313289

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

Preview Lab → · Contrast checker → · Palette generator →

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