#313370#313370

#313370 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.5% C 0.103 H 278.3°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#313370
RGBrgb(49, 51, 112)
HSLhsl(238, 39%, 32%)
HSVhsv(238, 56%, 44%)
CMYKcmyk(56.3%, 54.5%, 0%, 56.1%)
CIE-LABlab(24.29, 18.24, -35.75)
CIE-LCHlch(24.29, 40.13, 297.04°)
OKLaboklab(35.45% 0.0149 -0.1021)
OKLCHoklch(35.45% 0.103 278.3)
XYZxyz(5.3742, 4.1901, 15.8517)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313370 #706E31
analogous
#315370 #313370 #4F3170
triadic
#313370 #703133 #337031
tetradic
#313370 #703153 #706E31 #31704F
square
#313370 #703153 #706E31 #31704F
split-complementary
#313370 #704F31 #537031
monochromatic
#0C0C1B #1E2045 #313370 #44469B #6164BA

Accessibility & contrast

On white

11.43
#313370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#313370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313370
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313370#FFFFFF#000000##FFFFFF
##3133701.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133C72
Deuteranopia (green-blind)
#09376F
Tritanopia (blue-blind)
#14414C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313370;
/* rgb */ color: rgb(49, 51, 112);
/* oklch */ color: oklch(35.5% 0.103 278.3);
Tailwind
colors: {
  custom: {
    50: '#6f6a99',
    500: '#313370',
    950: '#000000',
  },
}
SCSS
$custom: #313370;
$custom-light: #6f6a99;
$custom-dark: #000000;
JSON
{
  "hex": "#313370",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 112
  },
  "hsl": {
    "h": 238.095,
    "s": 39.13,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35451,
    "c": 0.10319,
    "h": 278.3
  },
  "luminance": 0.0419
}

Semantic roles & 50–950 ramp

primary
#313370
secondary
#A19F5C
accent
#CB59CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313370

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

Preview Lab → · Contrast checker → · Palette generator →

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