#342697#342697

#342697 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.9% C 0.174 H 279.2°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#342697
RGBrgb(52, 38, 151)
HSLhsl(247, 60%, 37%)
HSVhsv(247, 75%, 59%)
CMYKcmyk(65.6%, 74.8%, 0%, 40.8%)
CIE-LABlab(24.80, 40.44, -59.38)
CIE-LCHlch(24.80, 71.84, 304.26°)
OKLaboklab(36.93% 0.0279 -0.1714)
OKLCHoklch(36.93% 0.174 279.2)
XYZxyz(7.6934, 4.3500, 29.7064)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342697 #899726
analogous
#265097 #342697 #6D2697
triadic
#342697 #973426 #269734
tetradic
#342697 #972650 #899726 #26976D
square
#342697 #972650 #899726 #26976D
split-complementary
#342697 #976D26 #509726
monochromatic
#120D35 #231A66 #342697 #4532C8 #6F60D7

Accessibility & contrast

On white

11.23
#342697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#342697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342697
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342697#FFFFFF#000000##FFFFFF
##3426971.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342697;
/* rgb */ color: rgb(52, 38, 151);
/* oklch */ color: oklch(36.9% 0.174 279.2);
Tailwind
colors: {
  custom: {
    50: '#7962b7',
    500: '#342697',
    950: '#000000',
  },
}
SCSS
$custom: #342697;
$custom-light: #7962b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342697",
  "rgb": {
    "r": 52,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 247.434,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36929,
    "c": 0.17365,
    "h": 279.2
  },
  "luminance": 0.04351
}

Semantic roles & 50–950 ramp

primary
#342697
secondary
#B0BC5C
accent
#E345CF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342697

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

Preview Lab → · Contrast checker → · Palette generator →

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