#34309B#34309B

#34309B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.168 H 276.9°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#34309B
RGBrgb(52, 48, 155)
HSLhsl(242, 53%, 40%)
HSVhsv(242, 69%, 61%)
CMYKcmyk(66.5%, 69%, 0%, 39.2%)
CIE-LABlab(27.32, 35.86, -57.67)
CIE-LCHlch(27.32, 67.91, 301.87°)
OKLaboklab(38.85% 0.02 -0.1664)
OKLCHoklch(38.85% 0.168 276.9)
XYZxyz(8.3876, 5.2098, 31.5676)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34309B #979B30
analogous
#30629B #34309B #6A309B
triadic
#34309B #9B3430 #309B34
tetradic
#34309B #9B3062 #979B30 #309B6A
square
#34309B #9B3062 #979B30 #309B6A
split-complementary
#34309B #9B6A30 #629B30
monochromatic
#15133E #24226C #34309B #4843C5 #7672D3

Accessibility & contrast

On white

10.28
#34309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#34309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34309B
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34309B#FFFFFF#000000##FFFFFF
##34309B1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #34309b;
/* rgb */ color: rgb(52, 48, 155);
/* oklch */ color: oklch(38.9% 0.168 276.9);
Tailwind
colors: {
  custom: {
    50: '#7969b9',
    500: '#34309b',
    950: '#000000',
  },
}
SCSS
$custom: #34309b;
$custom-light: #7969b9;
$custom-dark: #000000;
JSON
{
  "hex": "#34309b",
  "rgb": {
    "r": 52,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 242.243,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38854,
    "c": 0.16764,
    "h": 276.9
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

primary
#34309B
secondary
#B8BB6C
accent
#DC4CD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #34309B

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

Preview Lab → · Contrast checker → · Palette generator →

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