#342AAF#342AAF

#342AAF is a dark, vivid blue. Relative luminance 0.055; OKLCH L 40.0% C 0.199 H 275.8°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#342AAF
RGBrgb(52, 42, 175)
HSLhsl(245, 61%, 43%)
HSVhsv(245, 76%, 69%)
CMYKcmyk(70.3%, 76%, 0%, 31.4%)
CIE-LABlab(28.06, 45.96, -68.55)
CIE-LCHlch(28.06, 82.53, 303.84°)
OKLaboklab(39.98% 0.0202 -0.1982)
OKLCHoklch(39.98% 0.199 275.8)
XYZxyz(9.9795, 5.4802, 41.0810)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AAF #A5AF2A
analogous
#2A63AF #342AAF #762AAF
triadic
#342AAF #AF342A #2AAF34
tetradic
#342AAF #AF2A63 #A5AF2A #2AAF76
square
#342AAF #AF2A63 #A5AF2A #2AAF76
split-complementary
#342AAF #AF762A #63AF2A
monochromatic
#17124C #251E7E #342AAF #4F44D2 #7D75DE

Accessibility & contrast

On white

10.02
#342AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#342AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342AAF
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AAF#FFFFFF#000000##FFFFFF
##342AAF1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #342aaf;
/* rgb */ color: rgb(52, 42, 175);
/* oklch */ color: oklch(40.0% 0.199 275.8);
Tailwind
colors: {
  custom: {
    50: '#7e66c8',
    500: '#342aaf',
    950: '#000000',
  },
}
SCSS
$custom: #342aaf;
$custom-light: #7e66c8;
$custom-dark: #000000;
JSON
{
  "hex": "#342aaf",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 244.511,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39978,
    "c": 0.19919,
    "h": 275.8
  },
  "luminance": 0.05481
}

Semantic roles & 50–950 ramp

primary
#342AAF
secondary
#BFC66F
accent
#E443D8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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