#342997#342997

#342997 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.170 H 278.7°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#342997
RGBrgb(52, 41, 151)
HSLhsl(246, 57%, 38%)
HSVhsv(246, 73%, 59%)
CMYKcmyk(65.6%, 72.8%, 0%, 40.8%)
CIE-LABlab(25.41, 38.72, -58.37)
CIE-LCHlch(25.41, 70.04, 303.56°)
OKLaboklab(37.36% 0.0258 -0.1685)
OKLCHoklch(37.36% 0.17 278.7)
XYZxyz(7.7932, 4.5497, 29.7396)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342997 #8C9729
analogous
#295597 #342997 #6B2997
triadic
#342997 #973429 #299734
tetradic
#342997 #972955 #8C9729 #29976B
square
#342997 #972955 #8C9729 #29976B
split-complementary
#342997 #976B29 #559729
monochromatic
#130F37 #231C67 #342997 #4536C7 #7065D5

Accessibility & contrast

On white

10.99
#342997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#342997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342997
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342997#FFFFFF#000000##FFFFFF
##3429971.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342997;
/* rgb */ color: rgb(52, 41, 151);
/* oklch */ color: oklch(37.4% 0.170 278.7);
Tailwind
colors: {
  custom: {
    50: '#7964b7',
    500: '#342997',
    950: '#000000',
  },
}
SCSS
$custom: #342997;
$custom-light: #7964b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342997",
  "rgb": {
    "r": 52,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 246,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37365,
    "c": 0.17042,
    "h": 278.7
  },
  "luminance": 0.0455
}

Semantic roles & 50–950 ramp

primary
#342997
secondary
#B2BB61
accent
#E147D1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #342997

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

Preview Lab → · Contrast checker → · Palette generator →

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