#40309A#40309A

#40309A is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.164 H 282.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#40309A
RGBrgb(64, 48, 154)
HSLhsl(249, 52%, 40%)
HSVhsv(249, 69%, 60%)
CMYKcmyk(58.4%, 68.8%, 0%, 39.6%)
CIE-LABlab(28.21, 37.35, -55.57)
CIE-LCHlch(28.21, 66.96, 303.90°)
OKLaboklab(39.71% 0.0365 -0.1599)
OKLCHoklch(39.71% 0.164 282.8)
XYZxyz(9.0022, 5.5364, 31.1598)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40309A #8A9A30
analogous
#30559A #40309A #75309A
triadic
#40309A #9A4030 #309A40
tetradic
#40309A #9A3055 #8A9A30 #309A75
square
#40309A #9A3055 #8A9A30 #309A75
split-complementary
#40309A #9A7530 #559A30
monochromatic
#19133D #2D216B #40309A #5643C4 #8072D3

Accessibility & contrast

On white

9.96
#40309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40309A
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40309A#FFFFFF#000000##FFFFFF
##40309A1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#0E4B61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #40309a;
/* rgb */ color: rgb(64, 48, 154);
/* oklch */ color: oklch(39.7% 0.164 282.8);
Tailwind
colors: {
  custom: {
    50: '#7f6ab9',
    500: '#40309a',
    950: '#000000',
  },
}
SCSS
$custom: #40309a;
$custom-light: #7f6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#40309a",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 249.057,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39712,
    "c": 0.16403,
    "h": 282.8
  },
  "luminance": 0.05537
}

Semantic roles & 50–950 ramp

primary
#40309A
secondary
#AFBB6B
accent
#DC4CC6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40309A

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

Preview Lab → · Contrast checker → · Palette generator →

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