#342A97#342A97

#342A97 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.169 H 278.5°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#342A97
RGBrgb(52, 42, 151)
HSLhsl(246, 56%, 38%)
HSVhsv(246, 72%, 59%)
CMYKcmyk(65.6%, 72.2%, 0%, 40.8%)
CIE-LABlab(25.62, 38.14, -58.02)
CIE-LCHlch(25.62, 69.43, 303.32°)
OKLaboklab(37.52% 0.0251 -0.1674)
OKLCHoklch(37.52% 0.169 278.5)
XYZxyz(7.8283, 4.6197, 29.7513)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A97 #8D972A
analogous
#2A5697 #342A97 #6B2A97
triadic
#342A97 #97342A #2A9734
tetradic
#342A97 #972A56 #8D972A #2A976B
square
#342A97 #972A56 #8D972A #2A976B
split-complementary
#342A97 #976B2A #56972A
monochromatic
#130F37 #241D67 #342A97 #4437C7 #7167D5

Accessibility & contrast

On white

10.91
#342A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#342A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A97
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A97#FFFFFF#000000##FFFFFF
##342A971.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342a97;
/* rgb */ color: rgb(52, 42, 151);
/* oklch */ color: oklch(37.5% 0.169 278.5);
Tailwind
colors: {
  custom: {
    50: '#7965b7',
    500: '#342a97',
    950: '#000000',
  },
}
SCSS
$custom: #342a97;
$custom-light: #7965b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342a97",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 245.505,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37516,
    "c": 0.16931,
    "h": 278.5
  },
  "luminance": 0.0462
}

Semantic roles & 50–950 ramp

primary
#342A97
secondary
#B3BB62
accent
#E048D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342A97

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

Preview Lab → · Contrast checker → · Palette generator →

#342A97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva