#40319F#40319F

#40319F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.3% C 0.169 H 281.9°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#40319F
RGBrgb(64, 49, 159)
HSLhsl(248, 53%, 41%)
HSVhsv(248, 69%, 62%)
CMYKcmyk(59.7%, 69.2%, 0%, 37.6%)
CIE-LABlab(28.87, 38.36, -57.53)
CIE-LCHlch(28.87, 69.15, 303.70°)
OKLaboklab(40.33% 0.0348 -0.1657)
OKLCHoklch(40.33% 0.169 281.9)
XYZxyz(9.4687, 5.7892, 33.4126)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40319F #909F31
analogous
#31599F #40319F #77319F
triadic
#40319F #9F4031 #319F40
tetradic
#40319F #9F3159 #909F31 #319F77
square
#40319F #9F3159 #909F31 #319F77
split-complementary
#40319F #9F7731 #599F31
monochromatic
#1A1441 #2D2370 #40319F #5847C6 #8376D5

Accessibility & contrast

On white

9.73
#40319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#40319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40319F
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40319F#FFFFFF#000000##FFFFFF
##40319F1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #40319f;
/* rgb */ color: rgb(64, 49, 159);
/* oklch */ color: oklch(40.3% 0.169 281.9);
Tailwind
colors: {
  custom: {
    50: '#806abc',
    500: '#40319f',
    950: '#000000',
  },
}
SCSS
$custom: #40319f;
$custom-light: #806abc;
$custom-dark: #000000;
JSON
{
  "hex": "#40319f",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 248.182,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40327,
    "c": 0.16929,
    "h": 281.9
  },
  "luminance": 0.0579
}

Semantic roles & 50–950 ramp

primary
#40319F
secondary
#B2BD6F
accent
#DC4CC9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40319F

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

Preview Lab → · Contrast checker → · Palette generator →

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