#34299D#34299D

#34299D is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.178 H 277.9°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#34299D
RGBrgb(52, 41, 157)
HSLhsl(246, 59%, 39%)
HSVhsv(246, 74%, 62%)
CMYKcmyk(66.9%, 73.9%, 0%, 38.4%)
CIE-LABlab(26.01, 40.69, -61.05)
CIE-LCHlch(26.01, 73.37, 303.68°)
OKLaboklab(37.97% 0.0246 -0.1763)
OKLCHoklch(37.97% 0.178 277.9)
XYZxyz(8.2929, 4.7496, 32.3715)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34299D #929D29
analogous
#29589D #34299D #6E299D
triadic
#34299D #9D3429 #299D34
tetradic
#34299D #9D2958 #929D29 #299D6E
square
#34299D #9D2958 #929D29 #299D6E
split-complementary
#34299D #9D6E29 #589D29
monochromatic
#14103C #241C6C #34299D #4638CB #7369D8

Accessibility & contrast

On white

10.77
#34299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#34299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34299D
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34299D#FFFFFF#000000##FFFFFF
##34299D1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #34299d;
/* rgb */ color: rgb(52, 41, 157);
/* oklch */ color: oklch(38.0% 0.178 277.9);
Tailwind
colors: {
  custom: {
    50: '#7a65bb',
    500: '#34299d',
    950: '#000000',
  },
}
SCSS
$custom: #34299d;
$custom-light: #7a65bb;
$custom-dark: #000000;
JSON
{
  "hex": "#34299d",
  "rgb": {
    "r": 52,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 245.69,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37971,
    "c": 0.17802,
    "h": 277.9
  },
  "luminance": 0.0475
}

Semantic roles & 50–950 ramp

primary
#34299D
secondary
#B5BE64
accent
#E246D3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #34299D

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

Preview Lab → · Contrast checker → · Palette generator →

#34299D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva