#40348C#40348C

#40348C is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.140 H 284.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#40348C
RGBrgb(64, 52, 140)
HSLhsl(248, 46%, 38%)
HSVhsv(248, 63%, 55%)
CMYKcmyk(54.3%, 62.9%, 0%, 45.1%)
CIE-LABlab(27.95, 30.36, -47.39)
CIE-LCHlch(27.95, 56.28, 302.64°)
OKLaboklab(39.16% 0.034 -0.1359)
OKLCHoklch(39.16% 0.14 284.1)
XYZxyz(8.0745, 5.4390, 25.4302)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40348C #808C34
analogous
#34548C #40348C #6C348C
triadic
#40348C #8C4034 #348C40
tetradic
#40348C #8C3454 #808C34 #348C6C
square
#40348C #8C3454 #808C34 #348C6C
split-complementary
#40348C #8C6C34 #548C34
monochromatic
#171333 #2C235F #40348C #5445B9 #7D70CA

Accessibility & contrast

On white

10.06
#40348C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#40348C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40348C
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40348C#FFFFFF#000000##FFFFFF
##40348C1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#21495B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #40348c;
/* rgb */ color: rgb(64, 52, 140);
/* oklch */ color: oklch(39.2% 0.140 284.1);
Tailwind
colors: {
  custom: {
    50: '#7c6cae',
    500: '#40348c',
    950: '#000000',
  },
}
SCSS
$custom: #40348c;
$custom-light: #7c6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#40348c",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 140
  },
  "hsl": {
    "h": 248.182,
    "s": 45.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39156,
    "c": 0.14008,
    "h": 284.1
  },
  "luminance": 0.05439
}

Semantic roles & 50–950 ramp

primary
#40348C
secondary
#A8B26A
accent
#D552C4
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #40348C

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

Preview Lab → · Contrast checker → · Palette generator →

#40348C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva