#34298E#34298E

#34298E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.159 H 279.9°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#34298E
RGBrgb(52, 41, 142)
HSLhsl(247, 55%, 36%)
HSVhsv(247, 71%, 56%)
CMYKcmyk(63.4%, 71.1%, 0%, 44.3%)
CIE-LABlab(24.54, 35.74, -54.24)
CIE-LCHlch(24.54, 64.96, 303.38°)
OKLaboklab(36.48% 0.0274 -0.1564)
OKLCHoklch(36.48% 0.159 279.9)
XYZxyz(7.0900, 4.2684, 26.0362)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34298E #838E29
analogous
#29508E #34298E #66298E
triadic
#34298E #8E3429 #298E34
tetradic
#34298E #8E2950 #838E29 #298E66
square
#34298E #8E2950 #838E29 #298E66
split-complementary
#34298E #8E6629 #508E29
monochromatic
#110E2F #231B5F #34298E #4537BD #6D60D1

Accessibility & contrast

On white

11.33
#34298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#34298E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34298E
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34298E#FFFFFF#000000##FFFFFF
##34298E1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #34298e;
/* rgb */ color: rgb(52, 41, 142);
/* oklch */ color: oklch(36.5% 0.159 279.9);
Tailwind
colors: {
  custom: {
    50: '#7764b0',
    500: '#34298e',
    950: '#000000',
  },
}
SCSS
$custom: #34298e;
$custom-light: #7764b0;
$custom-dark: #000000;
JSON
{
  "hex": "#34298e",
  "rgb": {
    "r": 52,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 246.535,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36477,
    "c": 0.15878,
    "h": 279.9
  },
  "luminance": 0.04269
}

Semantic roles & 50–950 ramp

primary
#34298E
secondary
#ADB75C
accent
#DF49CE
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #34298E

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

Preview Lab → · Contrast checker → · Palette generator →

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