#342398#342398

#342398 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.178 H 279.6°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#342398
RGBrgb(52, 35, 152)
HSLhsl(249, 63%, 37%)
HSVhsv(249, 77%, 60%)
CMYKcmyk(65.8%, 77%, 0%, 40.4%)
CIE-LABlab(24.32, 42.41, -60.78)
CIE-LCHlch(24.32, 74.11, 304.90°)
OKLaboklab(36.62% 0.0296 -0.1755)
OKLCHoklch(36.62% 0.178 279.6)
XYZxyz(7.6829, 4.1985, 30.1052)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342398 #879823
analogous
#234D98 #342398 #6F2398
triadic
#342398 #983423 #239834
tetradic
#342398 #98234D #879823 #23986F
square
#342398 #98234D #879823 #23986F
split-complementary
#342398 #986F23 #4D9823
monochromatic
#120C35 #231866 #342398 #452ECA #6E5CD9

Accessibility & contrast

On white

11.41
#342398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#342398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342398
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342398#FFFFFF#000000##FFFFFF
##3423981.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342398;
/* rgb */ color: rgb(52, 35, 152);
/* oklch */ color: oklch(36.6% 0.178 279.6);
Tailwind
colors: {
  custom: {
    50: '#7a61b7',
    500: '#342398',
    950: '#000000',
  },
}
SCSS
$custom: #342398;
$custom-light: #7a61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342398",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 248.718,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36621,
    "c": 0.17794,
    "h": 279.6
  },
  "luminance": 0.04199
}

Semantic roles & 50–950 ramp

primary
#342398
secondary
#AFBE59
accent
#E642CE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342398

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

Preview Lab → · Contrast checker → · Palette generator →

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