#342598#342598

#342598 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.176 H 279.3°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#342598
RGBrgb(52, 37, 152)
HSLhsl(248, 61%, 37%)
HSVhsv(248, 76%, 60%)
CMYKcmyk(65.8%, 75.7%, 0%, 40.4%)
CIE-LABlab(24.70, 41.32, -60.15)
CIE-LCHlch(24.70, 72.97, 304.49°)
OKLaboklab(36.89% 0.0283 -0.1736)
OKLCHoklch(36.89% 0.176 279.3)
XYZxyz(7.7434, 4.3196, 30.1254)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342598 #899825
analogous
#255098 #342598 #6E2598
triadic
#342598 #983425 #259834
tetradic
#342598 #982550 #899825 #25986E
square
#342598 #982550 #899825 #25986E
split-complementary
#342598 #986E25 #509825
monochromatic
#120D36 #231967 #342598 #4531C9 #6F5FD8

Accessibility & contrast

On white

11.27
#342598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#342598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342598
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342598#FFFFFF#000000##FFFFFF
##3425981.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342598;
/* rgb */ color: rgb(52, 37, 152);
/* oklch */ color: oklch(36.9% 0.176 279.3);
Tailwind
colors: {
  custom: {
    50: '#7962b7',
    500: '#342598',
    950: '#000000',
  },
}
SCSS
$custom: #342598;
$custom-light: #7962b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342598",
  "rgb": {
    "r": 52,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 247.826,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36892,
    "c": 0.17593,
    "h": 279.3
  },
  "luminance": 0.0432
}

Semantic roles & 50–950 ramp

primary
#342598
secondary
#B0BD5C
accent
#E444CF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342598

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

Preview Lab → · Contrast checker → · Palette generator →

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