#40309F#40309F

#40309F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.170 H 282.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#40309F
RGBrgb(64, 48, 159)
HSLhsl(249, 54%, 41%)
HSVhsv(249, 70%, 62%)
CMYKcmyk(59.7%, 69.8%, 0%, 37.6%)
CIE-LABlab(28.66, 38.95, -57.88)
CIE-LCHlch(28.66, 69.77, 303.94°)
OKLaboklab(40.17% 0.0357 -0.1667)
OKLCHoklch(40.17% 0.17 282.1)
XYZxyz(9.4274, 5.7065, 33.3988)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40309F #8F9F30
analogous
#30579F #40309F #77309F
triadic
#40309F #9F4030 #309F40
tetradic
#40309F #9F3057 #8F9F30 #309F77
square
#40309F #9F3057 #8F9F30 #309F77
split-complementary
#40309F #9F7730 #579F30
monochromatic
#1A1441 #2D2270 #40309F #5845C7 #8274D5

Accessibility & contrast

On white

9.81
#40309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#40309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40309F
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40309F#FFFFFF#000000##FFFFFF
##40309F1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40309f;
/* rgb */ color: rgb(64, 48, 159);
/* oklch */ color: oklch(40.2% 0.170 282.1);
Tailwind
colors: {
  custom: {
    50: '#806abc',
    500: '#40309f',
    950: '#000000',
  },
}
SCSS
$custom: #40309f;
$custom-light: #806abc;
$custom-dark: #000000;
JSON
{
  "hex": "#40309f",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 248.649,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40172,
    "c": 0.17047,
    "h": 282.1
  },
  "luminance": 0.05707
}

Semantic roles & 50–950 ramp

primary
#40309F
secondary
#B2BD6E
accent
#DD4BC8
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #40309F

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

Preview Lab → · Contrast checker → · Palette generator →

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