#34308E#34308E

#34308E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.6% C 0.150 H 278.2°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#34308E
RGBrgb(52, 48, 142)
HSLhsl(243, 49%, 37%)
HSVhsv(243, 66%, 56%)
CMYKcmyk(63.4%, 66.2%, 0%, 44.3%)
CIE-LABlab(26.15, 31.39, -51.61)
CIE-LCHlch(26.15, 60.41, 301.31°)
OKLaboklab(37.64% 0.0215 -0.1487)
OKLCHoklch(37.64% 0.15 278.2)
XYZxyz(7.3540, 4.7964, 26.1242)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34308E #8A8E30
analogous
#305B8E #34308E #63308E
triadic
#34308E #8E3430 #308E34
tetradic
#34308E #8E305B #8A8E30 #308E63
square
#34308E #8E305B #8A8E30 #308E63
split-complementary
#34308E #8E6330 #5B8E30
monochromatic
#131133 #232160 #34308E #453FBC #6F6BCD

Accessibility & contrast

On white

10.72
#34308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#34308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34308E
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34308E#FFFFFF#000000##FFFFFF
##34308E1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #34308e;
/* rgb */ color: rgb(52, 48, 142);
/* oklch */ color: oklch(37.6% 0.150 278.2);
Tailwind
colors: {
  custom: {
    50: '#7669b0',
    500: '#34308e',
    950: '#000000',
  },
}
SCSS
$custom: #34308e;
$custom-light: #7669b0;
$custom-dark: #000000;
JSON
{
  "hex": "#34308e",
  "rgb": {
    "r": 52,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 242.553,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37638,
    "c": 0.15022,
    "h": 278.2
  },
  "luminance": 0.04797
}

Semantic roles & 50–950 ramp

primary
#34308E
secondary
#B1B465
accent
#D94FD3
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #34308E

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

Preview Lab → · Contrast checker → · Palette generator →

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