#34407E#34407E

#34407E is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.5% C 0.105 H 272.5°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#34407E
RGBrgb(52, 64, 126)
HSLhsl(230, 42%, 35%)
HSVhsv(230, 59%, 49%)
CMYKcmyk(58.7%, 49.2%, 0%, 50.6%)
CIE-LABlab(29.17, 15.05, -36.77)
CIE-LCHlch(29.17, 39.72, 292.26°)
OKLaboklab(39.5% 0.0046 -0.1049)
OKLCHoklch(39.5% 0.105 272.5)
XYZxyz(7.0142, 5.9027, 20.5043)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34407E #7E7234
analogous
#34657E #34407E #4D347E
triadic
#34407E #7E3440 #407E34
tetradic
#34407E #7E3465 #7E7234 #347E4D
square
#34407E #7E3465 #7E7234 #347E4D
split-complementary
#34407E #7E4D34 #657E34
monochromatic
#101427 #222A53 #34407E #4656A9 #6B79C2

Accessibility & contrast

On white

9.63
#34407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#34407E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34407E
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34407E#FFFFFF#000000##FFFFFF
##34407E1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234880
Deuteranopia (green-blind)
#18427D
Tritanopia (blue-blind)
#064E59
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #34407e;
/* rgb */ color: rgb(52, 64, 126);
/* oklch */ color: oklch(39.5% 0.105 272.5);
Tailwind
colors: {
  custom: {
    50: '#7274a4',
    500: '#34407e',
    950: '#000000',
  },
}
SCSS
$custom: #34407e;
$custom-light: #7274a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34407e",
  "rgb": {
    "r": 52,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 230.27,
    "s": 41.573,
    "l": 34.902
  },
  "oklch": {
    "l": 0.395,
    "c": 0.10498,
    "h": 272.5
  },
  "luminance": 0.05903
}

Semantic roles & 50–950 ramp

primary
#34407E
secondary
#AA9F64
accent
#BD56D1
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #34407E

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

Preview Lab → · Contrast checker → · Palette generator →

#34407E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva