#313FB3#313FB3

#313FB3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.182 H 271.1°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#313FB3
RGBrgb(49, 63, 179)
HSLhsl(234, 57%, 45%)
HSVhsv(234, 73%, 70%)
CMYKcmyk(72.6%, 64.8%, 0%, 29.8%)
CIE-LABlab(32.84, 34.47, -63.09)
CIE-LCHlch(32.84, 71.90, 298.65°)
OKLaboklab(43.48% 0.0036 -0.1823)
OKLCHoklch(43.48% 0.182 271.1)
XYZxyz(11.1780, 7.4615, 43.4902)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FB3 #B3A531
analogous
#3180B3 #313FB3 #6431B3
triadic
#313FB3 #B3313F #3FB331
tetradic
#313FB3 #B33180 #B3A531 #31B364
square
#313FB3 #B33180 #B3A531 #31B364
split-complementary
#313FB3 #B36431 #80B331
monochromatic
#171D53 #242E83 #313FB3 #525FD0 #828CDD

Accessibility & contrast

On white

8.42
#313FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#313FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FB3
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FB3#FFFFFF#000000##FFFFFF
##313FB31.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313fb3;
/* rgb */ color: rgb(49, 63, 179);
/* oklch */ color: oklch(43.5% 0.182 271.1);
Tailwind
colors: {
  custom: {
    50: '#7c74cb',
    500: '#313fb3',
    950: '#000000',
  },
}
SCSS
$custom: #313fb3;
$custom-light: #7c74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#313fb3",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 179
  },
  "hsl": {
    "h": 233.538,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4348,
    "c": 0.18237,
    "h": 271.1
  },
  "luminance": 0.07463
}

Semantic roles & 50–950 ramp

primary
#313FB3
secondary
#C6BE7A
accent
#D048E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313FB3

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

Preview Lab → · Contrast checker → · Palette generator →

#313FB3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva