#313889#313889

#313889 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.5% C 0.133 H 274.5°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#313889
RGBrgb(49, 56, 137)
HSLhsl(235, 47%, 36%)
HSVhsv(235, 64%, 54%)
CMYKcmyk(64.2%, 59.1%, 0%, 46.3%)
CIE-LABlab(27.54, 23.85, -46.26)
CIE-LCHlch(27.54, 52.04, 297.28°)
OKLaboklab(38.47% 0.0105 -0.133)
OKLCHoklch(38.47% 0.133 274.5)
XYZxyz(7.1947, 5.2869, 24.3034)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313889 #898231
analogous
#316489 #313889 #563189
triadic
#313889 #893138 #388931
tetradic
#313889 #893164 #898231 #318956
square
#313889 #893164 #898231 #318956
split-complementary
#313889 #895631 #648931
monochromatic
#11132F #21265C #313889 #414AB6 #6B72CA

Accessibility & contrast

On white

10.21
#313889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#313889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313889
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313889#FFFFFF#000000##FFFFFF
##3138891.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313889;
/* rgb */ color: rgb(49, 56, 137);
/* oklch */ color: oklch(38.5% 0.133 274.5);
Tailwind
colors: {
  custom: {
    50: '#736eac',
    500: '#313889',
    950: '#000000',
  },
}
SCSS
$custom: #313889;
$custom-light: #736eac;
$custom-dark: #000000;
JSON
{
  "hex": "#313889",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 137
  },
  "hsl": {
    "h": 235.227,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38474,
    "c": 0.13339,
    "h": 274.5
  },
  "luminance": 0.05287
}

Semantic roles & 50–950 ramp

primary
#313889
secondary
#B1AB64
accent
#CC51D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313889

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

Preview Lab → · Contrast checker → · Palette generator →

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