#34339A#34339A

#34339A is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.163 H 276.3°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#34339A
RGBrgb(52, 51, 154)
HSLhsl(241, 50%, 40%)
HSVhsv(241, 67%, 60%)
CMYKcmyk(66.2%, 66.9%, 0%, 39.6%)
CIE-LABlab(27.93, 33.65, -56.08)
CIE-LCHlch(27.93, 65.40, 300.97°)
OKLaboklab(39.26% 0.0178 -0.1618)
OKLCHoklch(39.26% 0.163 276.3)
XYZxyz(8.4308, 5.4301, 31.1694)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34339A #999A33
analogous
#33659A #34339A #68339A
triadic
#34339A #9A3433 #339A34
tetradic
#34339A #9A3365 #999A33 #339A68
square
#34339A #9A3365 #999A33 #339A68
split-complementary
#34339A #9A6833 #659A33
monochromatic
#15153E #24246C #34339A #4948C2 #7776D2

Accessibility & contrast

On white

10.07
#34339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34339A
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34339A#FFFFFF#000000##FFFFFF
##34339A1.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#003D98
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #34339a;
/* rgb */ color: rgb(52, 51, 154);
/* oklch */ color: oklch(39.3% 0.163 276.3);
Tailwind
colors: {
  custom: {
    50: '#796bb9',
    500: '#34339a',
    950: '#000000',
  },
}
SCSS
$custom: #34339a;
$custom-light: #796bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#34339a",
  "rgb": {
    "r": 52,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 240.583,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39262,
    "c": 0.16274,
    "h": 276.3
  },
  "luminance": 0.05431
}

Semantic roles & 50–950 ramp

primary
#34339A
secondary
#B9BA6F
accent
#DA4ED8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #34339A

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

Preview Lab → · Contrast checker → · Palette generator →

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