#342A7E#342A7E

#342A7E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.136 H 282.2°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#342A7E
RGBrgb(52, 42, 126)
HSLhsl(247, 50%, 33%)
HSVhsv(247, 67%, 49%)
CMYKcmyk(58.7%, 66.7%, 0%, 50.6%)
CIE-LABlab(23.31, 29.74, -46.23)
CIE-LCHlch(23.31, 54.97, 302.75°)
OKLaboklab(35.14% 0.0288 -0.1329)
OKLCHoklch(35.14% 0.136 282.2)
XYZxyz(6.0089, 3.8920, 20.1692)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A7E #747E2A
analogous
#2A4A7E #342A7E #5E2A7E
triadic
#342A7E #7E342A #2A7E34
tetradic
#342A7E #7E2A4A #747E2A #2A7E5E
square
#342A7E #7E2A4A #747E2A #2A7E5E
split-complementary
#342A7E #7E5E2A #4A7E2A
monochromatic
#0E0B22 #211B50 #342A7E #4739AC #675AC8

Accessibility & contrast

On white

11.81
#342A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342A7E
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A7E#FFFFFF#000000##FFFFFF
##342A7E1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#0D3F50
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342a7e;
/* rgb */ color: rgb(52, 42, 126);
/* oklch */ color: oklch(35.1% 0.136 282.2);
Tailwind
colors: {
  custom: {
    50: '#7464a4',
    500: '#342a7e',
    950: '#000000',
  },
}
SCSS
$custom: #342a7e;
$custom-light: #7464a4;
$custom-dark: #000000;
JSON
{
  "hex": "#342a7e",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 247.143,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35141,
    "c": 0.13598,
    "h": 282.2
  },
  "luminance": 0.03892
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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