#34309E#34309E

#34309E is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.172 H 276.6°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#34309E
RGBrgb(52, 48, 158)
HSLhsl(242, 53%, 40%)
HSVhsv(242, 70%, 62%)
CMYKcmyk(67.1%, 69.6%, 0%, 38%)
CIE-LABlab(27.61, 36.89, -59.04)
CIE-LCHlch(27.61, 69.62, 302.00°)
OKLaboklab(39.14% 0.0196 -0.1704)
OKLCHoklch(39.14% 0.172 276.6)
XYZxyz(8.6427, 5.3118, 32.9110)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34309E #9A9E30
analogous
#30639E #34309E #6B309E
triadic
#34309E #9E3430 #309E34
tetradic
#34309E #9E3063 #9A9E30 #309E6B
square
#34309E #9E3063 #9A9E30 #309E6B
split-complementary
#34309E #9E6B30 #639E30
monochromatic
#151340 #25226F #34309E #4945C6 #7774D5

Accessibility & contrast

On white

10.18
#34309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#34309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34309E
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34309E#FFFFFF#000000##FFFFFF
##34309E1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #34309e;
/* rgb */ color: rgb(52, 48, 158);
/* oklch */ color: oklch(39.1% 0.172 276.6);
Tailwind
colors: {
  custom: {
    50: '#7a69bc',
    500: '#34309e',
    950: '#000000',
  },
}
SCSS
$custom: #34309e;
$custom-light: #7a69bc;
$custom-dark: #000000;
JSON
{
  "hex": "#34309e",
  "rgb": {
    "r": 52,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 242.182,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39143,
    "c": 0.17156,
    "h": 276.6
  },
  "luminance": 0.05313
}

Semantic roles & 50–950 ramp

primary
#34309E
secondary
#BABD6D
accent
#DD4BD7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #34309E

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

Preview Lab → · Contrast checker → · Palette generator →

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