#34278C#34278C

#34278C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.159 H 280.7°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#34278C
RGBrgb(52, 39, 140)
HSLhsl(248, 56%, 35%)
HSVhsv(248, 72%, 55%)
CMYKcmyk(62.9%, 72.1%, 0%, 45.1%)
CIE-LABlab(23.91, 36.27, -54.02)
CIE-LCHlch(23.91, 65.07, 303.88°)
OKLaboklab(35.97% 0.0294 -0.1557)
OKLCHoklch(35.97% 0.159 280.7)
XYZxyz(6.8738, 4.0740, 25.2300)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34278C #7F8C27
analogous
#274C8C #34278C #67278C
triadic
#34278C #8C3427 #278C34
tetradic
#34278C #8C274C #7F8C27 #278C67
square
#34278C #8C274C #7F8C27 #278C67
split-complementary
#34278C #8C6727 #4C8C27
monochromatic
#100C2C #221A5C #34278C #4634BC #6B5CD2

Accessibility & contrast

On white

11.57
#34278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#34278C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34278C
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34278C#FFFFFF#000000##FFFFFF
##34278C1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #34278c;
/* rgb */ color: rgb(52, 39, 140);
/* oklch */ color: oklch(36.0% 0.159 280.7);
Tailwind
colors: {
  custom: {
    50: '#7763af',
    500: '#34278c',
    950: '#000000',
  },
}
SCSS
$custom: #34278c;
$custom-light: #7763af;
$custom-dark: #000000;
JSON
{
  "hex": "#34278c",
  "rgb": {
    "r": 52,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 247.723,
    "s": 56.425,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35971,
    "c": 0.1585,
    "h": 280.7
  },
  "luminance": 0.04075
}

Semantic roles & 50–950 ramp

primary
#34278C
secondary
#AAB758
accent
#E048CC
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #34278C

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

Preview Lab → · Contrast checker → · Palette generator →

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