#342198#342198

#342198 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.180 H 279.8°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#342198
RGBrgb(52, 33, 152)
HSLhsl(250, 64%, 36%)
HSVhsv(250, 78%, 60%)
CMYKcmyk(65.8%, 78.3%, 0%, 40.4%)
CIE-LABlab(23.95, 43.46, -61.39)
CIE-LCHlch(23.95, 75.22, 305.30°)
OKLaboklab(36.36% 0.0308 -0.1772)
OKLCHoklch(36.36% 0.18 279.8)
XYZxyz(7.6257, 4.0842, 30.0861)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342198 #859821
analogous
#214A98 #342198 #702198
triadic
#342198 #983421 #219834
tetradic
#342198 #98214A #859821 #219870
square
#342198 #98214A #859821 #219870
split-complementary
#342198 #987021 #4A9821
monochromatic
#120B33 #231666 #342198 #452CCA #6D59DB

Accessibility & contrast

On white

11.56
#342198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#342198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342198
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342198#FFFFFF#000000##FFFFFF
##3421981.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342198;
/* rgb */ color: rgb(52, 33, 152);
/* oklch */ color: oklch(36.4% 0.180 279.8);
Tailwind
colors: {
  custom: {
    50: '#7a60b8',
    500: '#342198',
    950: '#000000',
  },
}
SCSS
$custom: #342198;
$custom-light: #7a60b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342198",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 249.58,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36362,
    "c": 0.17988,
    "h": 279.8
  },
  "luminance": 0.04085
}

Semantic roles & 50–950 ramp

primary
#342198
secondary
#AEBF56
accent
#E740CD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342198

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

Preview Lab → · Contrast checker → · Palette generator →

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