#313273#313273

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

Color values

HEX#313273
RGBrgb(49, 50, 115)
HSLhsl(239, 40%, 32%)
HSVhsv(239, 57%, 45%)
CMYKcmyk(57.4%, 56.5%, 0%, 54.9%)
CIE-LABlab(24.23, 20.00, -37.76)
CIE-LCHlch(24.23, 42.73, 297.90°)
OKLaboklab(35.48% 0.0163 -0.108)
OKLCHoklch(35.48% 0.109 278.6)
XYZxyz(5.5008, 4.1716, 16.7317)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313273 #737231
analogous
#315373 #313273 #513173
triadic
#313273 #733132 #327331
tetradic
#313273 #733153 #737231 #317351
square
#313273 #733153 #737231 #317351
split-complementary
#313273 #735131 #537331
monochromatic
#0C0D1D #1F1F48 #313273 #43459E #6264BC

Accessibility & contrast

On white

11.45
#313273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#313273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313273
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313273#FFFFFF#000000##FFFFFF
##3132731.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3C75
Deuteranopia (green-blind)
#003772
Tritanopia (blue-blind)
#11414D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313273;
/* rgb */ color: rgb(49, 50, 115);
/* oklch */ color: oklch(35.5% 0.109 278.6);
Tailwind
colors: {
  custom: {
    50: '#6f699c',
    500: '#313273',
    950: '#000000',
  },
}
SCSS
$custom: #313273;
$custom-light: #6f699c;
$custom-dark: #000000;
JSON
{
  "hex": "#313273",
  "rgb": {
    "r": 49,
    "g": 50,
    "b": 115
  },
  "hsl": {
    "h": 239.091,
    "s": 40.244,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35476,
    "c": 0.10927,
    "h": 278.6
  },
  "luminance": 0.04172
}

Semantic roles & 50–950 ramp

primary
#313273
secondary
#A4A35C
accent
#CE58D0
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #313273

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

Preview Lab → · Contrast checker → · Palette generator →

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