#34338E#34338E

#34338E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.2% C 0.146 H 277.4°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#34338E
RGBrgb(52, 51, 142)
HSLhsl(241, 47%, 38%)
HSVhsv(241, 64%, 56%)
CMYKcmyk(63.4%, 64.1%, 0%, 44.3%)
CIE-LABlab(26.88, 29.46, -50.42)
CIE-LCHlch(26.88, 58.40, 300.30°)
OKLaboklab(38.17% 0.0188 -0.1452)
OKLCHoklch(38.17% 0.146 277.4)
XYZxyz(7.4809, 5.0501, 26.1665)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34338E #8D8E33
analogous
#33608E #34338E #61338E
triadic
#34338E #8E3433 #338E34
tetradic
#34338E #8E3360 #8D8E33 #338E61
square
#34338E #8E3360 #8D8E33 #338E61
split-complementary
#34338E #8E6133 #608E33
monochromatic
#131334 #242361 #34338E #4443BB #7170CC

Accessibility & contrast

On white

10.45
#34338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#34338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34338E
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34338E#FFFFFF#000000##FFFFFF
##34338E1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #34338e;
/* rgb */ color: rgb(52, 51, 142);
/* oklch */ color: oklch(38.2% 0.146 277.4);
Tailwind
colors: {
  custom: {
    50: '#766bb0',
    500: '#34338e',
    950: '#000000',
  },
}
SCSS
$custom: #34338e;
$custom-light: #766bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#34338e",
  "rgb": {
    "r": 52,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 240.659,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38171,
    "c": 0.14638,
    "h": 277.4
  },
  "luminance": 0.05051
}

Semantic roles & 50–950 ramp

primary
#34338E
secondary
#B3B469
accent
#D751D5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #34338E

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

Preview Lab → · Contrast checker → · Palette generator →

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