#34308D#34308D

#34308D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.149 H 278.4°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#34308D
RGBrgb(52, 48, 141)
HSLhsl(243, 49%, 37%)
HSVhsv(243, 66%, 55%)
CMYKcmyk(63.1%, 66%, 0%, 44.7%)
CIE-LABlab(26.06, 31.05, -51.13)
CIE-LCHlch(26.06, 59.82, 301.26°)
OKLaboklab(37.55% 0.0216 -0.1473)
OKLCHoklch(37.55% 0.149 278.4)
XYZxyz(7.2793, 4.7665, 25.7306)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34308D #898D30
analogous
#305A8D #34308D #63308D
triadic
#34308D #8D3430 #308D34
tetradic
#34308D #8D305A #898D30 #308D63
square
#34308D #8D305A #898D30 #308D63
split-complementary
#34308D #8D6330 #5A8D30
monochromatic
#121132 #23205F #34308D #4540BB #6F6BCD

Accessibility & contrast

On white

10.75
#34308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#34308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34308D
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34308D#FFFFFF#000000##FFFFFF
##34308D1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34308d;
/* rgb */ color: rgb(52, 48, 141);
/* oklch */ color: oklch(37.5% 0.149 278.4);
Tailwind
colors: {
  custom: {
    50: '#7669af',
    500: '#34308d',
    950: '#000000',
  },
}
SCSS
$custom: #34308d;
$custom-light: #7669af;
$custom-dark: #000000;
JSON
{
  "hex": "#34308d",
  "rgb": {
    "r": 52,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 242.581,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37547,
    "c": 0.14886,
    "h": 278.4
  },
  "luminance": 0.04767
}

Semantic roles & 50–950 ramp

primary
#34308D
secondary
#B0B465
accent
#D94FD3
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #34308D

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

Preview Lab → · Contrast checker → · Palette generator →

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