#34338B#34338B

#34338B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.9% C 0.142 H 277.7°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#34338B
RGBrgb(52, 51, 139)
HSLhsl(241, 46%, 37%)
HSVhsv(241, 63%, 55%)
CMYKcmyk(62.6%, 63.3%, 0%, 45.5%)
CIE-LABlab(26.62, 28.41, -48.97)
CIE-LCHlch(26.62, 56.62, 300.12°)
OKLaboklab(37.91% 0.019 -0.1409)
OKLCHoklch(37.91% 0.142 277.7)
XYZxyz(7.2587, 4.9612, 24.9962)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34338B #8A8B33
analogous
#335E8B #34338B #60338B
triadic
#34338B #8B3433 #338B34
tetradic
#34338B #8B335E #8A8B33 #338B60
square
#34338B #8B335E #8A8B33 #338B60
split-complementary
#34338B #8B6033 #5E8B33
monochromatic
#131231 #23235E #34338B #4543B8 #6F6ECA

Accessibility & contrast

On white

10.54
#34338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#34338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34338B
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34338B#FFFFFF#000000##FFFFFF
##34338B1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #34338b;
/* rgb */ color: rgb(52, 51, 139);
/* oklch */ color: oklch(37.9% 0.142 277.7);
Tailwind
colors: {
  custom: {
    50: '#756bae',
    500: '#34338b',
    950: '#000000',
  },
}
SCSS
$custom: #34338b;
$custom-light: #756bae;
$custom-dark: #000000;
JSON
{
  "hex": "#34338b",
  "rgb": {
    "r": 52,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 240.682,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37907,
    "c": 0.14219,
    "h": 277.7
  },
  "luminance": 0.04962
}

Semantic roles & 50–950 ramp

primary
#34338B
secondary
#B1B268
accent
#D652D4
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #34338B

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

Preview Lab → · Contrast checker → · Palette generator →

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