#342197#342197

#342197 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.179 H 280.0°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#342197
RGBrgb(52, 33, 151)
HSLhsl(250, 64%, 36%)
HSVhsv(250, 78%, 59%)
CMYKcmyk(65.6%, 78.1%, 0%, 40.8%)
CIE-LABlab(23.84, 43.15, -60.95)
CIE-LCHlch(23.84, 74.68, 305.30°)
OKLaboklab(36.26% 0.031 -0.1759)
OKLCHoklch(36.26% 0.179 280)
XYZxyz(7.5442, 4.0515, 29.6566)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342197 #849721
analogous
#214997 #342197 #6F2197
triadic
#342197 #973421 #219734
tetradic
#342197 #972149 #849721 #21976F
square
#342197 #972149 #849721 #21976F
split-complementary
#342197 #976F21 #499721
monochromatic
#110B33 #231665 #342197 #452CC9 #6D58DA

Accessibility & contrast

On white

11.60
#342197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342197
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342197#FFFFFF#000000##FFFFFF
##3421971.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342197;
/* rgb */ color: rgb(52, 33, 151);
/* oklch */ color: oklch(36.3% 0.179 280.0);
Tailwind
colors: {
  custom: {
    50: '#7a5fb7',
    500: '#342197',
    950: '#000000',
  },
}
SCSS
$custom: #342197;
$custom-light: #7a5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#342197",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 249.661,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36256,
    "c": 0.17867,
    "h": 280
  },
  "luminance": 0.04052
}

Semantic roles & 50–950 ramp

primary
#342197
secondary
#AEBE55
accent
#E741CC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342197

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

Preview Lab → · Contrast checker → · Palette generator →

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