#313288#313288

#313288 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.140 H 276.7°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#313288
RGBrgb(49, 50, 136)
HSLhsl(239, 47%, 36%)
HSVhsv(239, 64%, 53%)
CMYKcmyk(64%, 63.2%, 0%, 46.7%)
CIE-LABlab(25.90, 27.49, -48.30)
CIE-LCHlch(25.90, 55.58, 299.64°)
OKLaboklab(37.24% 0.0163 -0.139)
OKLCHoklch(37.24% 0.14 276.7)
XYZxyz(6.8497, 4.7112, 23.8362)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313288 #888731
analogous
#315E88 #313288 #5C3188
triadic
#313288 #883132 #328831
tetradic
#313288 #88315E #888731 #31885C
square
#313288 #88315E #888731 #31885C
split-complementary
#313288 #885C31 #5E8831
monochromatic
#11112E #21215B #313288 #4143B5 #6A6BC9

Accessibility & contrast

On white

10.81
#313288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#313288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313288
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313288#FFFFFF#000000##FFFFFF
##3132881.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418B
Deuteranopia (green-blind)
#003A86
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313288;
/* rgb */ color: rgb(49, 50, 136);
/* oklch */ color: oklch(37.2% 0.140 276.7);
Tailwind
colors: {
  custom: {
    50: '#736aab',
    500: '#313288',
    950: '#000000',
  },
}
SCSS
$custom: #313288;
$custom-light: #736aab;
$custom-dark: #000000;
JSON
{
  "hex": "#313288",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 136
  },
  "hsl": {
    "h": 239.31,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37235,
    "c": 0.13999,
    "h": 276.7
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313288

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

Preview Lab → · Contrast checker → · Palette generator →

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