#313374#313374

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

Color values

HEX#313374
RGBrgb(49, 51, 116)
HSLhsl(238, 41%, 32%)
HSVhsv(238, 58%, 45%)
CMYKcmyk(57.8%, 56%, 0%, 54.5%)
CIE-LABlab(24.58, 19.67, -37.84)
CIE-LCHlch(24.58, 42.64, 297.46°)
OKLaboklab(35.76% 0.0152 -0.1082)
OKLCHoklch(35.76% 0.109 278)
XYZxyz(5.6018, 4.2812, 17.0508)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313374 #747231
analogous
#315574 #313374 #513174
triadic
#313374 #743133 #337431
tetradic
#313374 #743155 #747231 #317451
square
#313374 #743155 #747231 #317451
split-complementary
#313374 #745131 #557431
monochromatic
#0D0D1E #1F2049 #313374 #43469F #6365BD

Accessibility & contrast

On white

11.31
#313374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313374
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313374#FFFFFF#000000##FFFFFF
##3133741.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3D76
Deuteranopia (green-blind)
#003873
Tritanopia (blue-blind)
#0F424E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313374;
/* rgb */ color: rgb(49, 51, 116);
/* oklch */ color: oklch(35.8% 0.109 278.0);
Tailwind
colors: {
  custom: {
    50: '#6f6a9c',
    500: '#313374',
    950: '#000000',
  },
}
SCSS
$custom: #313374;
$custom-light: #6f6a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#313374",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 116
  },
  "hsl": {
    "h": 238.209,
    "s": 40.606,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35761,
    "c": 0.10931,
    "h": 278
  },
  "luminance": 0.04282
}

Semantic roles & 50–950 ramp

primary
#313374
secondary
#A4A25C
accent
#CD57D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313374

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

Preview Lab → · Contrast checker → · Palette generator →

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