#40309B#40309B

#40309B is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.8% C 0.165 H 282.7°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#40309B
RGBrgb(64, 48, 155)
HSLhsl(249, 53%, 40%)
HSVhsv(249, 69%, 61%)
CMYKcmyk(58.7%, 69%, 0%, 39.2%)
CIE-LABlab(28.30, 37.67, -56.04)
CIE-LCHlch(28.30, 67.52, 303.91°)
OKLaboklab(39.8% 0.0363 -0.1613)
OKLCHoklch(39.8% 0.165 282.7)
XYZxyz(9.0859, 5.5699, 31.6003)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40309B #8B9B30
analogous
#30569B #40309B #76309B
triadic
#40309B #9B4030 #309B40
tetradic
#40309B #9B3056 #8B9B30 #309B76
square
#40309B #9B3056 #8B9B30 #309B76
split-complementary
#40309B #9B7630 #569B30
monochromatic
#19133E #2D226C #40309B #5743C5 #8172D3

Accessibility & contrast

On white

9.93
#40309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#40309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40309B
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40309B#FFFFFF#000000##FFFFFF
##40309B1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#0B4C61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40309b;
/* rgb */ color: rgb(64, 48, 155);
/* oklch */ color: oklch(39.8% 0.165 282.7);
Tailwind
colors: {
  custom: {
    50: '#7f6ab9',
    500: '#40309b',
    950: '#000000',
  },
}
SCSS
$custom: #40309b;
$custom-light: #7f6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#40309b",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 248.972,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39804,
    "c": 0.16532,
    "h": 282.7
  },
  "luminance": 0.0557
}

Semantic roles & 50–950 ramp

primary
#40309B
secondary
#AFBB6C
accent
#DC4CC7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40309B

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

Preview Lab → · Contrast checker → · Palette generator →

#40309B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva