#342A7F#342A7F

#342A7F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.137 H 282.1°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#342A7F
RGBrgb(52, 42, 127)
HSLhsl(247, 50%, 33%)
HSVhsv(247, 67%, 50%)
CMYKcmyk(59.1%, 66.9%, 0%, 50.2%)
CIE-LABlab(23.40, 30.08, -46.72)
CIE-LCHlch(23.40, 55.57, 302.77°)
OKLaboklab(35.23% 0.0287 -0.1343)
OKLCHoklch(35.23% 0.137 282.1)
XYZxyz(6.0737, 3.9179, 20.5107)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A7F #757F2A
analogous
#2A4A7F #342A7F #5E2A7F
triadic
#342A7F #7F342A #2A7F34
tetradic
#342A7F #7F2A4A #757F2A #2A7F5E
square
#342A7F #7F2A4A #757F2A #2A7F5E
split-complementary
#342A7F #7F5E2A #4A7F2A
monochromatic
#0E0C23 #211B51 #342A7F #4739AD #685BC9

Accessibility & contrast

On white

11.77
#342A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#342A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A7F
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A7F#FFFFFF#000000##FFFFFF
##342A7F1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#0B3F50
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342a7f;
/* rgb */ color: rgb(52, 42, 127);
/* oklch */ color: oklch(35.2% 0.137 282.1);
Tailwind
colors: {
  custom: {
    50: '#7464a5',
    500: '#342a7f',
    950: '#000000',
  },
}
SCSS
$custom: #342a7f;
$custom-light: #7464a5;
$custom-dark: #000000;
JSON
{
  "hex": "#342a7f",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 247.059,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35231,
    "c": 0.13737,
    "h": 282.1
  },
  "luminance": 0.03918
}

Semantic roles & 50–950 ramp

primary
#342A7F
secondary
#A4AE57
accent
#DA4EC9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #342A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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