#34289E#34289E

#34289E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.180 H 278.0°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#34289E
RGBrgb(52, 40, 158)
HSLhsl(246, 60%, 39%)
HSVhsv(246, 75%, 62%)
CMYKcmyk(67.1%, 74.7%, 0%, 38%)
CIE-LABlab(25.91, 41.58, -61.83)
CIE-LCHlch(25.91, 74.51, 303.92°)
OKLaboklab(37.93% 0.025 -0.1786)
OKLCHoklch(37.93% 0.18 278)
XYZxyz(8.3445, 4.7156, 32.8116)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34289E #929E28
analogous
#28579E #34289E #6F289E
triadic
#34289E #9E3428 #289E34
tetradic
#34289E #9E2857 #929E28 #289E6F
square
#34289E #9E2857 #929E28 #289E6F
split-complementary
#34289E #9E6F28 #579E28
monochromatic
#140F3C #241C6D #34289E #4637CC #7368D9

Accessibility & contrast

On white

10.81
#34289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#34289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34289E
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34289E#FFFFFF#000000##FFFFFF
##34289E1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #34289e;
/* rgb */ color: rgb(52, 40, 158);
/* oklch */ color: oklch(37.9% 0.180 278.0);
Tailwind
colors: {
  custom: {
    50: '#7a64bc',
    500: '#34289e',
    950: '#000000',
  },
}
SCSS
$custom: #34289e;
$custom-light: #7a64bc;
$custom-dark: #000000;
JSON
{
  "hex": "#34289e",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 246.102,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3793,
    "c": 0.18031,
    "h": 278
  },
  "luminance": 0.04716
}

Semantic roles & 50–950 ramp

primary
#34289E
secondary
#B5BF63
accent
#E345D3
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #34289E

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

Preview Lab → · Contrast checker → · Palette generator →

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