#342F99#342F99

#342F99 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.166 H 277.3°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#342F99
RGBrgb(52, 47, 153)
HSLhsl(243, 53%, 39%)
HSVhsv(243, 69%, 60%)
CMYKcmyk(66%, 69.3%, 0%, 40%)
CIE-LABlab(26.91, 35.80, -57.13)
CIE-LCHlch(26.91, 67.42, 302.07°)
OKLaboklab(38.5% 0.021 -0.1648)
OKLCHoklch(38.5% 0.166 277.3)
XYZxyz(8.1806, 5.0623, 30.6768)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F99 #94992F
analogous
#2F5F99 #342F99 #692F99
triadic
#342F99 #99342F #2F9934
tetradic
#342F99 #992F5F #94992F #2F9969
square
#342F99 #992F5F #94992F #2F9969
split-complementary
#342F99 #99692F #5F992F
monochromatic
#14123B #24216A #342F99 #4741C5 #746FD3

Accessibility & contrast

On white

10.43
#342F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#342F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F99
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F99#FFFFFF#000000##FFFFFF
##342F991.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #342f99;
/* rgb */ color: rgb(52, 47, 153);
/* oklch */ color: oklch(38.5% 0.166 277.3);
Tailwind
colors: {
  custom: {
    50: '#7968b8',
    500: '#342f99',
    950: '#000000',
  },
}
SCSS
$custom: #342f99;
$custom-light: #7968b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342f99",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 242.83,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38499,
    "c": 0.16619,
    "h": 277.3
  },
  "luminance": 0.05063
}

Semantic roles & 50–950 ramp

primary
#342F99
secondary
#B7BA69
accent
#DC4BD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342F99

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

Preview Lab → · Contrast checker → · Palette generator →

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