#342C97#342C97

#342C97 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.167 H 278.1°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#342C97
RGBrgb(52, 44, 151)
HSLhsl(244, 55%, 38%)
HSVhsv(244, 71%, 59%)
CMYKcmyk(65.6%, 70.9%, 0%, 40.8%)
CIE-LABlab(26.06, 36.94, -57.31)
CIE-LCHlch(26.06, 68.18, 302.81°)
OKLaboklab(37.83% 0.0236 -0.1654)
OKLCHoklch(37.83% 0.167 278.1)
XYZxyz(7.9010, 4.7652, 29.7756)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C97 #8F972C
analogous
#2C5997 #342C97 #692C97
triadic
#342C97 #97342C #2C9734
tetradic
#342C97 #972C59 #8F972C #2C9769
square
#342C97 #972C59 #8F972C #2C9769
split-complementary
#342C97 #97692C #59972C
monochromatic
#131038 #241E68 #342C97 #453AC6 #726AD4

Accessibility & contrast

On white

10.75
#342C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#342C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C97
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C97#FFFFFF#000000##FFFFFF
##342C971.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342c97;
/* rgb */ color: rgb(52, 44, 151);
/* oklch */ color: oklch(37.8% 0.167 278.1);
Tailwind
colors: {
  custom: {
    50: '#7966b7',
    500: '#342c97',
    950: '#000000',
  },
}
SCSS
$custom: #342c97;
$custom-light: #7966b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342c97",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 244.486,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37826,
    "c": 0.16705,
    "h": 278.1
  },
  "luminance": 0.04766
}

Semantic roles & 50–950 ramp

primary
#342C97
secondary
#B4BA65
accent
#DE4AD3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342C97

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

Preview Lab → · Contrast checker → · Palette generator →

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