#34339B#34339B

#34339B is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.4% C 0.164 H 276.2°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#34339B
RGBrgb(52, 51, 155)
HSLhsl(241, 50%, 40%)
HSVhsv(241, 67%, 61%)
CMYKcmyk(66.5%, 67.1%, 0%, 39.2%)
CIE-LABlab(28.02, 34.00, -56.54)
CIE-LCHlch(28.02, 65.97, 301.02°)
OKLaboklab(39.36% 0.0177 -0.1631)
OKLCHoklch(39.36% 0.164 276.2)
XYZxyz(8.5145, 5.4635, 31.6099)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34339B #9A9B33
analogous
#33669B #34339B #68339B
triadic
#34339B #9B3433 #339B34
tetradic
#34339B #9B3366 #9A9B33 #339B68
square
#34339B #9B3366 #9A9B33 #339B68
split-complementary
#34339B #9B6833 #669B33
monochromatic
#15153F #25246D #34339B #4948C3 #7776D2

Accessibility & contrast

On white

10.03
#34339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#34339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34339B
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34339B#FFFFFF#000000##FFFFFF
##34339B1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #34339b;
/* rgb */ color: rgb(52, 51, 155);
/* oklch */ color: oklch(39.4% 0.164 276.2);
Tailwind
colors: {
  custom: {
    50: '#796bb9',
    500: '#34339b',
    950: '#000000',
  },
}
SCSS
$custom: #34339b;
$custom-light: #796bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#34339b",
  "rgb": {
    "r": 52,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 240.577,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39355,
    "c": 0.16407,
    "h": 276.2
  },
  "luminance": 0.05464
}

Semantic roles & 50–950 ramp

primary
#34339B
secondary
#BABA6F
accent
#DA4ED9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #34339B

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

Preview Lab → · Contrast checker → · Palette generator →

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