#34277C#34277C

#34277C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.137 H 283.5°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#34277C
RGBrgb(52, 39, 124)
HSLhsl(249, 52%, 32%)
HSVhsv(249, 69%, 49%)
CMYKcmyk(58.1%, 68.5%, 0%, 51.4%)
CIE-LABlab(22.43, 30.96, -46.40)
CIE-LCHlch(22.43, 55.78, 303.71°)
OKLaboklab(34.45% 0.032 -0.1334)
OKLCHoklch(34.45% 0.137 283.5)
XYZxyz(5.7787, 3.6360, 19.4622)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34277C #6F7C27
analogous
#27457C #34277C #5E277C
triadic
#34277C #7C3427 #277C34
tetradic
#34277C #7C2745 #6F7C27 #277C5E
square
#34277C #7C2745 #6F7C27 #277C5E
split-complementary
#34277C #7C5E27 #457C27
monochromatic
#0D0A1F #20184D #34277C #4836AB #6654C9

Accessibility & contrast

On white

12.16
#34277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#34277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34277C
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34277C#FFFFFF#000000##FFFFFF
##34277C1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#113D4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #34277c;
/* rgb */ color: rgb(52, 39, 124);
/* oklch */ color: oklch(34.4% 0.137 283.5);
Tailwind
colors: {
  custom: {
    50: '#7462a3',
    500: '#34277c',
    950: '#000000',
  },
}
SCSS
$custom: #34277c;
$custom-light: #7462a3;
$custom-dark: #000000;
JSON
{
  "hex": "#34277c",
  "rgb": {
    "r": 52,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 249.176,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34447,
    "c": 0.13719,
    "h": 283.5
  },
  "luminance": 0.03636
}

Semantic roles & 50–950 ramp

primary
#34277C
secondary
#A0AE51
accent
#DC4CC6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #34277C

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

Preview Lab → · Contrast checker → · Palette generator →

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