#313375#313375

#313375 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.8% C 0.111 H 277.9°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#313375
RGBrgb(49, 51, 117)
HSLhsl(238, 41%, 33%)
HSVhsv(238, 58%, 46%)
CMYKcmyk(58.1%, 56.4%, 0%, 54.1%)
CIE-LABlab(24.65, 20.02, -38.35)
CIE-LCHlch(24.65, 43.27, 297.57°)
OKLaboklab(35.84% 0.0153 -0.1098)
OKLCHoklch(35.84% 0.111 277.9)
XYZxyz(5.6603, 4.3046, 17.3588)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313375 #757331
analogous
#315575 #313375 #513175
triadic
#313375 #753133 #337531
tetradic
#313375 #753155 #757331 #317551
square
#313375 #753155 #757331 #317551
split-complementary
#313375 #755131 #557531
monochromatic
#0D0D1F #1F204A #313375 #4346A0 #6365BE

Accessibility & contrast

On white

11.28
#313375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#313375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313375
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313375#FFFFFF#000000##FFFFFF
##3133751.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3D77
Deuteranopia (green-blind)
#003874
Tritanopia (blue-blind)
#0E424E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #313375;
/* rgb */ color: rgb(49, 51, 117);
/* oklch */ color: oklch(35.8% 0.111 277.9);
Tailwind
colors: {
  custom: {
    50: '#706a9d',
    500: '#313375',
    950: '#000000',
  },
}
SCSS
$custom: #313375;
$custom-light: #706a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#313375",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 117
  },
  "hsl": {
    "h": 238.235,
    "s": 40.964,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3584,
    "c": 0.11083,
    "h": 277.9
  },
  "luminance": 0.04305
}

Semantic roles & 50–950 ramp

primary
#313375
secondary
#A5A35D
accent
#CD57D1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313375

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

Preview Lab → · Contrast checker → · Palette generator →

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