#342397#342397

#342397 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.177 H 279.7°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#342397
RGBrgb(52, 35, 151)
HSLhsl(249, 62%, 36%)
HSVhsv(249, 77%, 59%)
CMYKcmyk(65.6%, 76.8%, 0%, 40.8%)
CIE-LABlab(24.21, 42.09, -60.34)
CIE-LCHlch(24.21, 73.57, 304.90°)
OKLaboklab(36.52% 0.0298 -0.1742)
OKLCHoklch(36.52% 0.177 279.7)
XYZxyz(7.6013, 4.1659, 29.6757)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342397 #869723
analogous
#234C97 #342397 #6E2397
triadic
#342397 #973423 #239734
tetradic
#342397 #97234C #869723 #23976E
square
#342397 #97234C #869723 #23976E
split-complementary
#342397 #976E23 #4C9723
monochromatic
#120C34 #231765 #342397 #452FC9 #6E5BD9

Accessibility & contrast

On white

11.46
#342397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#342397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342397
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342397#FFFFFF#000000##FFFFFF
##3423971.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342397;
/* rgb */ color: rgb(52, 35, 151);
/* oklch */ color: oklch(36.5% 0.177 279.7);
Tailwind
colors: {
  custom: {
    50: '#7961b7',
    500: '#342397',
    950: '#000000',
  },
}
SCSS
$custom: #342397;
$custom-light: #7961b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342397",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 248.793,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36516,
    "c": 0.17671,
    "h": 279.7
  },
  "luminance": 0.04166
}

Semantic roles & 50–950 ramp

primary
#342397
secondary
#AFBE58
accent
#E542CE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342397

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

Preview Lab → · Contrast checker → · Palette generator →

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