#342498#342498

#342498 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.177 H 279.4°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#342498
RGBrgb(52, 36, 152)
HSLhsl(248, 62%, 37%)
HSVhsv(248, 76%, 60%)
CMYKcmyk(65.8%, 76.3%, 0%, 40.4%)
CIE-LABlab(24.51, 41.87, -60.47)
CIE-LCHlch(24.51, 73.55, 304.70°)
OKLaboklab(36.75% 0.0289 -0.1746)
OKLCHoklch(36.75% 0.177 279.4)
XYZxyz(7.7127, 4.2582, 30.1151)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342498 #889824
analogous
#244E98 #342498 #6E2498
triadic
#342498 #983424 #249834
tetradic
#342498 #98244E #889824 #24986E
square
#342498 #98244E #889824 #24986E
split-complementary
#342498 #986E24 #4E9824
monochromatic
#120D35 #231867 #342498 #4530C9 #6F5ED9

Accessibility & contrast

On white

11.34
#342498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#342498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342498
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342498#FFFFFF#000000##FFFFFF
##3424981.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342498;
/* rgb */ color: rgb(52, 36, 152);
/* oklch */ color: oklch(36.8% 0.177 279.4);
Tailwind
colors: {
  custom: {
    50: '#7961b7',
    500: '#342498',
    950: '#000000',
  },
}
SCSS
$custom: #342498;
$custom-light: #7961b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342498",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 248.276,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36755,
    "c": 0.17694,
    "h": 279.4
  },
  "luminance": 0.04259
}

Semantic roles & 50–950 ramp

primary
#342498
secondary
#B0BE5A
accent
#E543CE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342498

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

Preview Lab → · Contrast checker → · Palette generator →

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