#34277E#34277E

#34277E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.140 H 283.1°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#34277E
RGBrgb(52, 39, 126)
HSLhsl(249, 53%, 32%)
HSVhsv(249, 69%, 49%)
CMYKcmyk(58.7%, 69%, 0%, 50.6%)
CIE-LABlab(22.61, 31.63, -47.38)
CIE-LCHlch(22.61, 56.97, 303.73°)
OKLaboklab(34.63% 0.0317 -0.1363)
OKLCHoklch(34.63% 0.14 283.1)
XYZxyz(5.9064, 3.6871, 20.1351)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34277E #717E27
analogous
#27457E #34277E #60277E
triadic
#34277E #7E3427 #277E34
tetradic
#34277E #7E2745 #717E27 #277E60
square
#34277E #7E2745 #717E27 #277E60
split-complementary
#34277E #7E6027 #457E27
monochromatic
#0D0A21 #21194F #34277E #4735AD #6755CA

Accessibility & contrast

On white

12.09
#34277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#34277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34277E
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34277E#FFFFFF#000000##FFFFFF
##34277E1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#0E3D4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #34277e;
/* rgb */ color: rgb(52, 39, 126);
/* oklch */ color: oklch(34.6% 0.140 283.1);
Tailwind
colors: {
  custom: {
    50: '#7462a4',
    500: '#34277e',
    950: '#000000',
  },
}
SCSS
$custom: #34277e;
$custom-light: #7462a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34277e",
  "rgb": {
    "r": 52,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 248.966,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34632,
    "c": 0.13991,
    "h": 283.1
  },
  "luminance": 0.03687
}

Semantic roles & 50–950 ramp

primary
#34277E
secondary
#A1AF52
accent
#DC4CC7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #34277E

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

Preview Lab → · Contrast checker → · Palette generator →

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