#34278F#34278F

#34278F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.162 H 280.2°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#34278F
RGBrgb(52, 39, 143)
HSLhsl(248, 57%, 36%)
HSVhsv(248, 73%, 56%)
CMYKcmyk(63.6%, 72.7%, 0%, 43.9%)
CIE-LABlab(24.21, 37.26, -55.41)
CIE-LCHlch(24.21, 66.77, 303.92°)
OKLaboklab(36.27% 0.0288 -0.1598)
OKLCHoklch(36.27% 0.162 280.2)
XYZxyz(7.0980, 4.1637, 26.4109)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34278F #828F27
analogous
#274E8F #34278F #68278F
triadic
#34278F #8F3427 #278F34
tetradic
#34278F #8F274E #828F27 #278F68
square
#34278F #8F274E #828F27 #278F68
split-complementary
#34278F #8F6827 #4E8F27
monochromatic
#110D2F #231A5F #34278F #4534BF #6C5DD3

Accessibility & contrast

On white

11.46
#34278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#34278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34278F
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34278F#FFFFFF#000000##FFFFFF
##34278F1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #34278f;
/* rgb */ color: rgb(52, 39, 143);
/* oklch */ color: oklch(36.3% 0.162 280.2);
Tailwind
colors: {
  custom: {
    50: '#7763b1',
    500: '#34278f',
    950: '#000000',
  },
}
SCSS
$custom: #34278f;
$custom-light: #7763b1;
$custom-dark: #000000;
JSON
{
  "hex": "#34278f",
  "rgb": {
    "r": 52,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 247.5,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36268,
    "c": 0.16239,
    "h": 280.2
  },
  "luminance": 0.04164
}

Semantic roles & 50–950 ramp

primary
#34278F
secondary
#ACB85A
accent
#E047CD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #34278F

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

Preview Lab → · Contrast checker → · Palette generator →

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