#34278D#34278D

#34278D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.160 H 280.5°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#34278D
RGBrgb(52, 39, 141)
HSLhsl(248, 57%, 35%)
HSVhsv(248, 72%, 55%)
CMYKcmyk(63.1%, 72.3%, 0%, 44.7%)
CIE-LABlab(24.01, 36.60, -54.49)
CIE-LCHlch(24.01, 65.64, 303.89°)
OKLaboklab(36.07% 0.0292 -0.1571)
OKLCHoklch(36.07% 0.16 280.5)
XYZxyz(6.9479, 4.1037, 25.6201)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34278D #808D27
analogous
#274D8D #34278D #67278D
triadic
#34278D #8D3427 #278D34
tetradic
#34278D #8D274D #808D27 #278D67
square
#34278D #8D274D #808D27 #278D67
split-complementary
#34278D #8D6727 #4D8D27
monochromatic
#110C2D #221A5D #34278D #4634BD #6B5CD2

Accessibility & contrast

On white

11.53
#34278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34278D
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34278D#FFFFFF#000000##FFFFFF
##34278D1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #34278d;
/* rgb */ color: rgb(52, 39, 141);
/* oklch */ color: oklch(36.1% 0.160 280.5);
Tailwind
colors: {
  custom: {
    50: '#7763af',
    500: '#34278d',
    950: '#000000',
  },
}
SCSS
$custom: #34278d;
$custom-light: #7763af;
$custom-dark: #000000;
JSON
{
  "hex": "#34278d",
  "rgb": {
    "r": 52,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 247.647,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.3607,
    "c": 0.1598,
    "h": 280.5
  },
  "luminance": 0.04104
}

Semantic roles & 50–950 ramp

primary
#34278D
secondary
#ABB759
accent
#E048CD
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #34278D

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

Preview Lab → · Contrast checker → · Palette generator →

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