#313489#313489

#313489 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.139 H 275.9°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#313489
RGBrgb(49, 52, 137)
HSLhsl(238, 47%, 36%)
HSVhsv(238, 64%, 54%)
CMYKcmyk(64.2%, 62%, 0%, 46.3%)
CIE-LABlab(26.49, 26.52, -47.96)
CIE-LCHlch(26.49, 54.80, 298.94°)
OKLaboklab(37.7% 0.0144 -0.138)
OKLCHoklch(37.7% 0.139 275.9)
XYZxyz(7.0085, 4.9145, 24.2413)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313489 #898631
analogous
#316089 #313489 #5A3189
triadic
#313489 #893134 #348931
tetradic
#313489 #893160 #898631 #31895A
square
#313489 #893160 #898631 #31895A
split-complementary
#313489 #895A31 #608931
monochromatic
#11122F #21235C #313489 #4145B6 #6B6ECA

Accessibility & contrast

On white

10.59
#313489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#313489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313489
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313489#FFFFFF#000000##FFFFFF
##3134891.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#003B87
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313489;
/* rgb */ color: rgb(49, 52, 137);
/* oklch */ color: oklch(37.7% 0.139 275.9);
Tailwind
colors: {
  custom: {
    50: '#736bac',
    500: '#313489',
    950: '#000000',
  },
}
SCSS
$custom: #313489;
$custom-light: #736bac;
$custom-dark: #000000;
JSON
{
  "hex": "#313489",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 137
  },
  "hsl": {
    "h": 237.955,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37699,
    "c": 0.13876,
    "h": 275.9
  },
  "luminance": 0.04915
}

Semantic roles & 50–950 ramp

primary
#313489
secondary
#B1AF64
accent
#D251D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313489

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

Preview Lab → · Contrast checker → · Palette generator →

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