#40319C#40319C

#40319C is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.165 H 282.3°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#40319C
RGBrgb(64, 49, 156)
HSLhsl(248, 52%, 40%)
HSVhsv(248, 69%, 61%)
CMYKcmyk(59%, 68.6%, 0%, 38.8%)
CIE-LABlab(28.61, 37.40, -56.14)
CIE-LCHlch(28.61, 67.46, 303.67°)
OKLaboklab(40.05% 0.0353 -0.1616)
OKLCHoklch(40.05% 0.165 282.3)
XYZxyz(9.2116, 5.6863, 32.0582)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40319C #8D9C31
analogous
#31589C #40319C #75319C
triadic
#40319C #9C4031 #319C40
tetradic
#40319C #9C3158 #8D9C31 #319C75
square
#40319C #9C3158 #8D9C31 #319C75
split-complementary
#40319C #9C7531 #589C31
monochromatic
#1A143F #2D226D #40319C #5745C5 #8174D3

Accessibility & contrast

On white

9.83
#40319C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#40319C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40319C
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40319C#FFFFFF#000000##FFFFFF
##40319C1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#084D62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40319c;
/* rgb */ color: rgb(64, 49, 156);
/* oklch */ color: oklch(40.1% 0.165 282.3);
Tailwind
colors: {
  custom: {
    50: '#7f6aba',
    500: '#40319c',
    950: '#000000',
  },
}
SCSS
$custom: #40319c;
$custom-light: #7f6aba;
$custom-dark: #000000;
JSON
{
  "hex": "#40319c",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 248.411,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40052,
    "c": 0.16541,
    "h": 282.3
  },
  "luminance": 0.05687
}

Semantic roles & 50–950 ramp

primary
#40319C
secondary
#B0BB6D
accent
#DC4CC8
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40319C

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

Preview Lab → · Contrast checker → · Palette generator →

#40319C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva