#342A75#342A75

#342A75 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.123 H 283.9°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#342A75
RGBrgb(52, 42, 117)
HSLhsl(248, 47%, 31%)
HSVhsv(248, 64%, 46%)
CMYKcmyk(55.6%, 64.1%, 0%, 54.1%)
CIE-LABlab(22.55, 26.70, -41.75)
CIE-LCHlch(22.55, 49.56, 302.60°)
OKLaboklab(34.35% 0.0296 -0.1197)
OKLCHoklch(34.35% 0.123 283.9)
XYZxyz(5.4541, 3.6700, 17.2472)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A75 #6B752A
analogous
#2A4575 #342A75 #592A75
triadic
#342A75 #75342A #2A7534
tetradic
#342A75 #752A45 #6B752A #2A7559
square
#342A75 #752A45 #6B752A #2A7559
split-complementary
#342A75 #75592A #45752A
monochromatic
#0C0A1B #201A48 #342A75 #483AA2 #6557C3

Accessibility & contrast

On white

12.11
#342A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#342A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A75
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A75#FFFFFF#000000##FFFFFF
##342A751.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003877
Deuteranopia (green-blind)
#003373
Tritanopia (blue-blind)
#193C4B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342a75;
/* rgb */ color: rgb(52, 42, 117);
/* oklch */ color: oklch(34.3% 0.123 283.9);
Tailwind
colors: {
  custom: {
    50: '#72649d',
    500: '#342a75',
    950: '#000000',
  },
}
SCSS
$custom: #342a75;
$custom-light: #72649d;
$custom-dark: #000000;
JSON
{
  "hex": "#342a75",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 117
  },
  "hsl": {
    "h": 248,
    "s": 47.17,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34347,
    "c": 0.12333,
    "h": 283.9
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#342A75
secondary
#9CA754
accent
#D751C5
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342A75

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

Preview Lab → · Contrast checker → · Palette generator →

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