#34339D#34339D

#34339D is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.5% C 0.167 H 276.0°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#34339D
RGBrgb(52, 51, 157)
HSLhsl(241, 51%, 41%)
HSVhsv(241, 68%, 62%)
CMYKcmyk(66.9%, 67.5%, 0%, 38.4%)
CIE-LABlab(28.20, 34.69, -57.46)
CIE-LCHlch(28.20, 67.12, 301.12°)
OKLaboklab(39.54% 0.0175 -0.1658)
OKLCHoklch(39.54% 0.167 276)
XYZxyz(8.6838, 5.5313, 32.5018)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34339D #9C9D33
analogous
#33679D #34339D #69339D
triadic
#34339D #9D3433 #339D34
tetradic
#34339D #9D3367 #9C9D33 #339D69
square
#34339D #9D3367 #9C9D33 #339D69
split-complementary
#34339D #9D6933 #679D33
monochromatic
#151541 #25246F #34339D #4A49C4 #7877D3

Accessibility & contrast

On white

9.97
#34339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#34339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34339D
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34339D#FFFFFF#000000##FFFFFF
##34339D1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #34339d;
/* rgb */ color: rgb(52, 51, 157);
/* oklch */ color: oklch(39.5% 0.167 276.0);
Tailwind
colors: {
  custom: {
    50: '#796bbb',
    500: '#34339d',
    950: '#000000',
  },
}
SCSS
$custom: #34339d;
$custom-light: #796bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#34339d",
  "rgb": {
    "r": 52,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 240.566,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39542,
    "c": 0.16673,
    "h": 276
  },
  "luminance": 0.05532
}

Semantic roles & 50–950 ramp

primary
#34339D
secondary
#BBBB70
accent
#DA4DD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #34339D

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

Preview Lab → · Contrast checker → · Palette generator →

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