#313773#313773

#313773 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.5% C 0.102 H 275.8°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#313773
RGBrgb(49, 55, 115)
HSLhsl(235, 40%, 32%)
HSVhsv(235, 57%, 45%)
CMYKcmyk(57.4%, 52.2%, 0%, 54.9%)
CIE-LABlab(25.63, 16.56, -35.51)
CIE-LCHlch(25.63, 39.18, 295.01°)
OKLaboklab(36.53% 0.0104 -0.1014)
OKLCHoklch(36.53% 0.102 275.8)
XYZxyz(5.7263, 4.6228, 16.8069)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313773 #736D31
analogous
#315873 #313773 #4C3173
triadic
#313773 #733137 #377331
tetradic
#313773 #733158 #736D31 #31734C
square
#313773 #733158 #736D31 #31734C
split-complementary
#313773 #734C31 #587331
monochromatic
#0C0E1D #1F2248 #313773 #434C9E #626ABC

Accessibility & contrast

On white

10.91
#313773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#313773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313773
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313773#FFFFFF#000000##FFFFFF
##3137731.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194075
Deuteranopia (green-blind)
#103A72
Tritanopia (blue-blind)
#10444F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313773;
/* rgb */ color: rgb(49, 55, 115);
/* oklch */ color: oklch(36.5% 0.102 275.8);
Tailwind
colors: {
  custom: {
    50: '#6f6d9c',
    500: '#313773',
    950: '#000000',
  },
}
SCSS
$custom: #313773;
$custom-light: #6f6d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#313773",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 115
  },
  "hsl": {
    "h": 234.545,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36529,
    "c": 0.10189,
    "h": 275.8
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#313773
secondary
#A49D5C
accent
#C558D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313773

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

Preview Lab → · Contrast checker → · Palette generator →

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