#342A9F#342A9F

#342A9F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.179 H 277.5°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#342A9F
RGBrgb(52, 42, 159)
HSLhsl(245, 58%, 39%)
HSVhsv(245, 74%, 62%)
CMYKcmyk(67.3%, 73.6%, 0%, 37.6%)
CIE-LABlab(26.41, 40.77, -61.61)
CIE-LCHlch(26.41, 73.88, 303.50°)
OKLaboklab(38.32% 0.0235 -0.1779)
OKLCHoklch(38.32% 0.179 277.5)
XYZxyz(8.5001, 4.8885, 33.2898)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A9F #959F2A
analogous
#2A5B9F #342A9F #6F2A9F
triadic
#342A9F #9F342A #2A9F34
tetradic
#342A9F #9F2A5B #959F2A #2A9F6F
square
#342A9F #9F2A5B #959F2A #2A9F6F
split-complementary
#342A9F #9F6F2A #5B9F2A
monochromatic
#14103E #241D6F #342A9F #473BCB #756BD8

Accessibility & contrast

On white

10.62
#342A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#342A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A9F
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A9F#FFFFFF#000000##FFFFFF
##342A9F1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342a9f;
/* rgb */ color: rgb(52, 42, 159);
/* oklch */ color: oklch(38.3% 0.179 277.5);
Tailwind
colors: {
  custom: {
    50: '#7a65bd',
    500: '#342a9f',
    950: '#000000',
  },
}
SCSS
$custom: #342a9f;
$custom-light: #7a65bd;
$custom-dark: #000000;
JSON
{
  "hex": "#342a9f",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 245.128,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3832,
    "c": 0.17948,
    "h": 277.5
  },
  "luminance": 0.04889
}

Semantic roles & 50–950 ramp

primary
#342A9F
secondary
#B7BF66
accent
#E146D4
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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