#342F7A#342F7A

#342F7A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.123 H 281.1°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#342F7A
RGBrgb(52, 47, 122)
HSLhsl(244, 44%, 33%)
HSVhsv(244, 61%, 48%)
CMYKcmyk(57.4%, 61.5%, 0%, 52.2%)
CIE-LABlab(24.22, 25.11, -42.22)
CIE-LCHlch(24.22, 49.13, 300.74°)
OKLaboklab(35.7% 0.0238 -0.1211)
OKLCHoklch(35.7% 0.123 281.1)
XYZxyz(5.9445, 4.1679, 18.8998)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F7A #757A2F
analogous
#2F4F7A #342F7A #592F7A
triadic
#342F7A #7A342F #2F7A34
tetradic
#342F7A #7A2F4F #757A2F #2F7A59
square
#342F7A #7A2F4F #757A2F #2F7A59
split-complementary
#342F7A #7A592F #4F7A2F
monochromatic
#0E0D22 #211E4E #342F7A #4740A6 #6861C2

Accessibility & contrast

On white

11.45
#342F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#342F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F7A
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F7A#FFFFFF#000000##FFFFFF
##342F7A1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#12414F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342f7a;
/* rgb */ color: rgb(52, 47, 122);
/* oklch */ color: oklch(35.7% 0.123 281.1);
Tailwind
colors: {
  custom: {
    50: '#7367a1',
    500: '#342f7a',
    950: '#000000',
  },
}
SCSS
$custom: #342f7a;
$custom-light: #7367a1;
$custom-dark: #000000;
JSON
{
  "hex": "#342f7a",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 244,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35701,
    "c": 0.12342,
    "h": 281.1
  },
  "luminance": 0.04168
}

Semantic roles & 50–950 ramp

primary
#342F7A
secondary
#A4A95C
accent
#D454CC
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #342F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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