#34278A#34278A

#34278A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.156 H 281.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#34278A
RGBrgb(52, 39, 138)
HSLhsl(248, 56%, 35%)
HSVhsv(248, 72%, 54%)
CMYKcmyk(62.3%, 71.7%, 0%, 45.9%)
CIE-LABlab(23.72, 35.61, -53.09)
CIE-LCHlch(23.72, 63.93, 303.85°)
OKLaboklab(35.78% 0.0298 -0.153)
OKLCHoklch(35.78% 0.156 281)
XYZxyz(6.7277, 4.0156, 24.4604)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34278A #7D8A27
analogous
#274B8A #34278A #66278A
triadic
#34278A #8A3427 #278A34
tetradic
#34278A #8A274B #7D8A27 #278A66
square
#34278A #8A274B #7D8A27 #278A66
split-complementary
#34278A #8A6627 #4B8A27
monochromatic
#100C2B #221A5A #34278A #4634BA #6A5BD1

Accessibility & contrast

On white

11.65
#34278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#34278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34278A
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34278A#FFFFFF#000000##FFFFFF
##34278A1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003588
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #34278a;
/* rgb */ color: rgb(52, 39, 138);
/* oklch */ color: oklch(35.8% 0.156 281.0);
Tailwind
colors: {
  custom: {
    50: '#7662ad',
    500: '#34278a',
    950: '#000000',
  },
}
SCSS
$custom: #34278a;
$custom-light: #7662ad;
$custom-dark: #000000;
JSON
{
  "hex": "#34278a",
  "rgb": {
    "r": 52,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 247.879,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35776,
    "c": 0.15589,
    "h": 281
  },
  "luminance": 0.04016
}

Semantic roles & 50–950 ramp

primary
#34278A
secondary
#A9B657
accent
#DF49CB
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #34278A

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

Preview Lab → · Contrast checker → · Palette generator →

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