#342497#342497

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

Color values

HEX#342497
RGBrgb(52, 36, 151)
HSLhsl(248, 61%, 37%)
HSVhsv(248, 76%, 59%)
CMYKcmyk(65.6%, 76.2%, 0%, 40.8%)
CIE-LABlab(24.40, 41.55, -60.02)
CIE-LCHlch(24.40, 73.00, 304.69°)
OKLaboklab(36.65% 0.0292 -0.1733)
OKLCHoklch(36.65% 0.176 279.6)
XYZxyz(7.6312, 4.2256, 29.6856)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342497 #879724
analogous
#244E97 #342497 #6E2497
triadic
#342497 #973424 #249734
tetradic
#342497 #97244E #879724 #24976E
square
#342497 #97244E #879724 #24976E
split-complementary
#342497 #976E24 #4E9724
monochromatic
#120C34 #231866 #342497 #4530C8 #6E5DD8

Accessibility & contrast

On white

11.38
#342497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342497
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342497#FFFFFF#000000##FFFFFF
##3424971.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342497;
/* rgb */ color: rgb(52, 36, 151);
/* oklch */ color: oklch(36.7% 0.176 279.6);
Tailwind
colors: {
  custom: {
    50: '#7961b7',
    500: '#342497',
    950: '#000000',
  },
}
SCSS
$custom: #342497;
$custom-light: #7961b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342497",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 248.348,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36651,
    "c": 0.17571,
    "h": 279.6
  },
  "luminance": 0.04226
}

Semantic roles & 50–950 ramp

primary
#342497
secondary
#AFBD5A
accent
#E543CE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342497

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

Preview Lab → · Contrast checker → · Palette generator →

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