#342298#342298

#342298 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.179 H 279.7°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#342298
RGBrgb(52, 34, 152)
HSLhsl(249, 63%, 36%)
HSVhsv(249, 78%, 60%)
CMYKcmyk(65.8%, 77.6%, 0%, 40.4%)
CIE-LABlab(24.13, 42.94, -61.09)
CIE-LCHlch(24.13, 74.67, 305.10°)
OKLaboklab(36.49% 0.0302 -0.1764)
OKLCHoklch(36.49% 0.179 279.7)
XYZxyz(7.6539, 4.1405, 30.0955)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342298 #869822
analogous
#224B98 #342298 #6F2298
triadic
#342298 #983422 #229834
tetradic
#342298 #98224B #869822 #22986F
square
#342298 #98224B #869822 #22986F
split-complementary
#342298 #986F22 #4B9822
monochromatic
#120C34 #231766 #342298 #452DCA #6E5ADA

Accessibility & contrast

On white

11.49
#342298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#342298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342298
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342298#FFFFFF#000000##FFFFFF
##3422981.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342298;
/* rgb */ color: rgb(52, 34, 152);
/* oklch */ color: oklch(36.5% 0.179 279.7);
Tailwind
colors: {
  custom: {
    50: '#7a60b7',
    500: '#342298',
    950: '#000000',
  },
}
SCSS
$custom: #342298;
$custom-light: #7a60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342298",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 249.153,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.3649,
    "c": 0.17892,
    "h": 279.7
  },
  "luminance": 0.04141
}

Semantic roles & 50–950 ramp

primary
#342298
secondary
#AFBE57
accent
#E641CD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342298

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

Preview Lab → · Contrast checker → · Palette generator →

#342298 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva