#34408C#34408C

#34408C is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.126 H 272.7°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#34408C
RGBrgb(52, 64, 140)
HSLhsl(232, 46%, 38%)
HSVhsv(232, 63%, 55%)
CMYKcmyk(62.9%, 54.3%, 0%, 45.1%)
CIE-LABlab(30.13, 20.11, -43.90)
CIE-LCHlch(30.13, 48.29, 294.61°)
OKLaboklab(40.54% 0.006 -0.1259)
OKLCHoklch(40.54% 0.126 272.7)
XYZxyz(7.9816, 6.2897, 25.5993)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34408C #8C8034
analogous
#346C8C #34408C #54348C
triadic
#34408C #8C3440 #408C34
tetradic
#34408C #8C346C #8C8034 #348C54
square
#34408C #8C346C #8C8034 #348C54
split-complementary
#34408C #8C5434 #6C8C34
monochromatic
#131733 #232C5F #34408C #4554B9 #707DCA

Accessibility & contrast

On white

9.30
#34408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#34408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34408C
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34408C#FFFFFF#000000##FFFFFF
##34408C1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114B8F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #34408c;
/* rgb */ color: rgb(52, 64, 140);
/* oklch */ color: oklch(40.5% 0.126 272.7);
Tailwind
colors: {
  custom: {
    50: '#7574ae',
    500: '#34408c',
    950: '#000000',
  },
}
SCSS
$custom: #34408c;
$custom-light: #7574ae;
$custom-dark: #000000;
JSON
{
  "hex": "#34408c",
  "rgb": {
    "r": 52,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 231.818,
    "s": 45.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4054,
    "c": 0.12601,
    "h": 272.7
  },
  "luminance": 0.0629
}

Semantic roles & 50–950 ramp

primary
#34408C
secondary
#B2A86A
accent
#C452D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #34408C

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

Preview Lab → · Contrast checker → · Palette generator →

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