#342A9A#342A9A

#342A9A is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.173 H 278.1°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#342A9A
RGBrgb(52, 42, 154)
HSLhsl(245, 57%, 38%)
HSVhsv(245, 73%, 60%)
CMYKcmyk(66.2%, 72.7%, 0%, 39.6%)
CIE-LABlab(25.92, 39.13, -59.37)
CIE-LCHlch(25.92, 71.11, 303.39°)
OKLaboklab(37.82% 0.0245 -0.1714)
OKLCHoklch(37.82% 0.173 278.1)
XYZxyz(8.0750, 4.7184, 31.0508)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A9A #909A2A
analogous
#2A589A #342A9A #6C2A9A
triadic
#342A9A #9A342A #2A9A34
tetradic
#342A9A #9A2A58 #909A2A #2A9A6C
square
#342A9A #9A2A58 #909A2A #2A9A6C
split-complementary
#342A9A #9A6C2A #589A2A
monochromatic
#14103A #241D6A #342A9A #4538C9 #7268D6

Accessibility & contrast

On white

10.80
#342A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#342A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A9A
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A9A#FFFFFF#000000##FFFFFF
##342A9A1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342a9a;
/* rgb */ color: rgb(52, 42, 154);
/* oklch */ color: oklch(37.8% 0.173 278.1);
Tailwind
colors: {
  custom: {
    50: '#7965b9',
    500: '#342a9a',
    950: '#000000',
  },
}
SCSS
$custom: #342a9a;
$custom-light: #7965b9;
$custom-dark: #000000;
JSON
{
  "hex": "#342a9a",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 245.357,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37815,
    "c": 0.17315,
    "h": 278.1
  },
  "luminance": 0.04719
}

Semantic roles & 50–950 ramp

primary
#342A9A
secondary
#B4BC63
accent
#E047D3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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