#313377#313377

#313377 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 36.0% C 0.114 H 277.8°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#313377
RGBrgb(49, 51, 119)
HSLhsl(238, 42%, 33%)
HSVhsv(238, 59%, 47%)
CMYKcmyk(58.8%, 57.1%, 0%, 53.3%)
CIE-LABlab(24.80, 20.74, -39.38)
CIE-LCHlch(24.80, 44.51, 297.77°)
OKLaboklab(36% 0.0154 -0.1128)
OKLCHoklch(36% 0.114 277.8)
XYZxyz(5.7792, 4.3521, 17.9847)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313377 #777531
analogous
#315677 #313377 #523177
triadic
#313377 #773133 #337731
tetradic
#313377 #773156 #777531 #317752
square
#313377 #773156 #777531 #317752
split-complementary
#313377 #775231 #567731
monochromatic
#0D0E20 #1F204C #313377 #4346A2 #6366BF

Accessibility & contrast

On white

11.23
#313377 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#313377 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313377
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313377#FFFFFF#000000##FFFFFF
##3133771.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063E79
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#0A434F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313377;
/* rgb */ color: rgb(49, 51, 119);
/* oklch */ color: oklch(36.0% 0.114 277.8);
Tailwind
colors: {
  custom: {
    50: '#706a9f',
    500: '#313377',
    950: '#000000',
  },
}
SCSS
$custom: #313377;
$custom-light: #706a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#313377",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 119
  },
  "hsl": {
    "h": 238.286,
    "s": 41.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35999,
    "c": 0.11385,
    "h": 277.8
  },
  "luminance": 0.04353
}

Semantic roles & 50–950 ramp

primary
#313377
secondary
#A6A45D
accent
#CE56D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313377

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

Preview Lab → · Contrast checker → · Palette generator →

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