#34339F#34339F

#34339F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.169 H 275.8°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#34339F
RGBrgb(52, 51, 159)
HSLhsl(241, 51%, 41%)
HSVhsv(241, 68%, 62%)
CMYKcmyk(67.3%, 67.9%, 0%, 37.6%)
CIE-LABlab(28.38, 35.38, -58.38)
CIE-LCHlch(28.38, 68.26, 301.22°)
OKLaboklab(39.73% 0.0173 -0.1685)
OKLCHoklch(39.73% 0.169 275.8)
XYZxyz(8.8560, 5.6001, 33.4084)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34339F #9E9F33
analogous
#33689F #34339F #6A339F
triadic
#34339F #9F3433 #339F34
tetradic
#34339F #9F3368 #9E9F33 #339F6A
square
#34339F #9F3368 #9E9F33 #339F6A
split-complementary
#34339F #9F6A33 #689F33
monochromatic
#161542 #252471 #34339F #4B4AC5 #7979D4

Accessibility & contrast

On white

9.90
#34339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#34339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34339F
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34339F#FFFFFF#000000##FFFFFF
##34339F1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#003E9D
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #34339f;
/* rgb */ color: rgb(52, 51, 159);
/* oklch */ color: oklch(39.7% 0.169 275.8);
Tailwind
colors: {
  custom: {
    50: '#7a6bbc',
    500: '#34339f',
    950: '#000000',
  },
}
SCSS
$custom: #34339f;
$custom-light: #7a6bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#34339f",
  "rgb": {
    "r": 52,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 240.556,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39731,
    "c": 0.16938,
    "h": 275.8
  },
  "luminance": 0.05601
}

Semantic roles & 50–950 ramp

primary
#34339F
secondary
#BCBC71
accent
#DB4DDA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #34339F

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

Preview Lab → · Contrast checker → · Palette generator →

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