#40346B#40346B

#40346B is a dark, moderate violet. Relative luminance 0.046; OKLCH L 36.7% C 0.092 H 291.2°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#40346B
RGBrgb(64, 52, 107)
HSLhsl(253, 35%, 31%)
HSVhsv(253, 51%, 42%)
CMYKcmyk(40.2%, 51.4%, 0%, 58%)
CIE-LABlab(25.59, 19.79, -30.39)
CIE-LCHlch(25.59, 36.26, 303.07°)
OKLaboklab(36.65% 0.0333 -0.0859)
OKLCHoklch(36.65% 0.092 291.2)
XYZxyz(5.9955, 4.6074, 14.4805)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40346B #5F6B34
analogous
#34436B #40346B #5B346B
triadic
#40346B #6B4034 #346B40
tetradic
#40346B #6B3443 #5F6B34 #346B5B
square
#40346B #6B3443 #5F6B34 #346B5B
split-complementary
#40346B #6B5B34 #436B34
monochromatic
#0F0C19 #272042 #40346B #594894 #7665B4

Accessibility & contrast

On white

10.93
#40346B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#40346B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40346B
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40346B#FFFFFF#000000##FFFFFF
##40346B1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3E6D
Deuteranopia (green-blind)
#213B6A
Tritanopia (blue-blind)
#353F4A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #40346b;
/* rgb */ color: rgb(64, 52, 107);
/* oklch */ color: oklch(36.7% 0.092 291.2);
Tailwind
colors: {
  custom: {
    50: '#776b96',
    500: '#40346b',
    950: '#000000',
  },
}
SCSS
$custom: #40346b;
$custom-light: #776b96;
$custom-dark: #000000;
JSON
{
  "hex": "#40346b",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 107
  },
  "hsl": {
    "h": 253.091,
    "s": 34.591,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36651,
    "c": 0.09216,
    "h": 291.2
  },
  "luminance": 0.04608
}

Semantic roles & 50–950 ramp

primary
#40346B
secondary
#8F9C5F
accent
#CB5DB3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09060D
muted
#7B7A7E

Preview Lab

Preview with #40346B

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

Preview Lab → · Contrast checker → · Palette generator →

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