#34289C#34289C

#34289C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.178 H 278.2°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#34289C
RGBrgb(52, 40, 156)
HSLhsl(246, 59%, 38%)
HSVhsv(246, 74%, 61%)
CMYKcmyk(66.7%, 74.4%, 0%, 38.8%)
CIE-LABlab(25.71, 40.93, -60.94)
CIE-LCHlch(25.71, 73.42, 303.89°)
OKLaboklab(37.72% 0.0254 -0.176)
OKLCHoklch(37.72% 0.178 278.2)
XYZxyz(8.1738, 4.6473, 31.9123)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34289C #909C28
analogous
#28569C #34289C #6E289C
triadic
#34289C #9C3428 #289C34
tetradic
#34289C #9C2856 #909C28 #289C6E
square
#34289C #9C2856 #909C28 #289C6E
split-complementary
#34289C #9C6E28 #569C28
monochromatic
#140F3B #241C6B #34289C #4536CB #7267D8

Accessibility & contrast

On white

10.88
#34289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#34289C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34289C
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34289C#FFFFFF#000000##FFFFFF
##34289C1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #34289c;
/* rgb */ color: rgb(52, 40, 156);
/* oklch */ color: oklch(37.7% 0.178 278.2);
Tailwind
colors: {
  custom: {
    50: '#7a64ba',
    500: '#34289c',
    950: '#000000',
  },
}
SCSS
$custom: #34289c;
$custom-light: #7a64ba;
$custom-dark: #000000;
JSON
{
  "hex": "#34289c",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 246.207,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37725,
    "c": 0.17782,
    "h": 278.2
  },
  "luminance": 0.04648
}

Semantic roles & 50–950 ramp

primary
#34289C
secondary
#B4BE62
accent
#E245D2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #34289C

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

Preview Lab → · Contrast checker → · Palette generator →

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