#34338D#34338D

#34338D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.145 H 277.5°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#34338D
RGBrgb(52, 51, 141)
HSLhsl(241, 47%, 38%)
HSVhsv(241, 64%, 55%)
CMYKcmyk(63.1%, 63.8%, 0%, 44.7%)
CIE-LABlab(26.79, 29.11, -49.94)
CIE-LCHlch(26.79, 57.80, 300.24°)
OKLaboklab(38.08% 0.0189 -0.1437)
OKLCHoklch(38.08% 0.145 277.5)
XYZxyz(7.4062, 5.0202, 25.7729)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34338D #8C8D33
analogous
#335F8D #34338D #61338D
triadic
#34338D #8D3433 #338D34
tetradic
#34338D #8D335F #8C8D33 #338D61
square
#34338D #8D335F #8C8D33 #338D61
split-complementary
#34338D #8D6133 #5F8D33
monochromatic
#131233 #232360 #34338D #4543BA #706FCB

Accessibility & contrast

On white

10.48
#34338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#34338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34338D
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34338D#FFFFFF#000000##FFFFFF
##34338D1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #34338d;
/* rgb */ color: rgb(52, 51, 141);
/* oklch */ color: oklch(38.1% 0.145 277.5);
Tailwind
colors: {
  custom: {
    50: '#766baf',
    500: '#34338d',
    950: '#000000',
  },
}
SCSS
$custom: #34338d;
$custom-light: #766baf;
$custom-dark: #000000;
JSON
{
  "hex": "#34338d",
  "rgb": {
    "r": 52,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 240.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38083,
    "c": 0.14499,
    "h": 277.5
  },
  "luminance": 0.05021
}

Semantic roles & 50–950 ramp

primary
#34338D
secondary
#B2B369
accent
#D751D5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #34338D

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

Preview Lab → · Contrast checker → · Palette generator →

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