#34278B#34278B

#34278B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.157 H 280.8°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#34278B
RGBrgb(52, 39, 139)
HSLhsl(248, 56%, 35%)
HSVhsv(248, 72%, 55%)
CMYKcmyk(62.6%, 71.9%, 0%, 45.5%)
CIE-LABlab(23.82, 35.94, -53.56)
CIE-LCHlch(23.82, 64.50, 303.86°)
OKLaboklab(35.87% 0.0296 -0.1544)
OKLCHoklch(35.87% 0.157 280.8)
XYZxyz(6.8004, 4.0447, 24.8434)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34278B #7E8B27
analogous
#274C8B #34278B #66278B
triadic
#34278B #8B3427 #278B34
tetradic
#34278B #8B274C #7E8B27 #278B66
square
#34278B #8B274C #7E8B27 #278B66
split-complementary
#34278B #8B6627 #4C8B27
monochromatic
#100C2B #221A5B #34278B #4634BB #6B5BD1

Accessibility & contrast

On white

11.61
#34278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#34278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34278B
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34278B#FFFFFF#000000##FFFFFF
##34278B1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #34278b;
/* rgb */ color: rgb(52, 39, 139);
/* oklch */ color: oklch(35.9% 0.157 280.8);
Tailwind
colors: {
  custom: {
    50: '#7763ae',
    500: '#34278b',
    950: '#000000',
  },
}
SCSS
$custom: #34278b;
$custom-light: #7763ae;
$custom-dark: #000000;
JSON
{
  "hex": "#34278b",
  "rgb": {
    "r": 52,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 247.8,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35873,
    "c": 0.1572,
    "h": 280.8
  },
  "luminance": 0.04045
}

Semantic roles & 50–950 ramp

primary
#34278B
secondary
#AAB658
accent
#DF48CC
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #34278B

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

Preview Lab → · Contrast checker → · Palette generator →

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