#342AB0#342AB0

#342AB0 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.1% C 0.200 H 275.7°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#342AB0
RGBrgb(52, 42, 176)
HSLhsl(244, 61%, 43%)
HSVhsv(244, 76%, 69%)
CMYKcmyk(70.5%, 76.1%, 0%, 31%)
CIE-LABlab(28.17, 46.28, -68.98)
CIE-LCHlch(28.17, 83.06, 303.86°)
OKLaboklab(40.08% 0.0199 -0.1994)
OKLCHoklch(40.08% 0.2 275.7)
XYZxyz(10.0780, 5.5196, 41.6002)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342AB0 #A6B02A
analogous
#2A63B0 #342AB0 #772AB0
triadic
#342AB0 #B0342A #2AB034
tetradic
#342AB0 #B02A63 #A6B02A #2AB077
square
#342AB0 #B02A63 #A6B02A #2AB077
split-complementary
#342AB0 #B0772A #63B02A
monochromatic
#17124D #251E7F #342AB0 #4F45D3 #7E76DE

Accessibility & contrast

On white

9.98
#342AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342AB0
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342AB0#FFFFFF#000000##FFFFFF
##342AB01.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342ab0;
/* rgb */ color: rgb(52, 42, 176);
/* oklch */ color: oklch(40.1% 0.200 275.7);
Tailwind
colors: {
  custom: {
    50: '#7e66c9',
    500: '#342ab0',
    950: '#000000',
  },
}
SCSS
$custom: #342ab0;
$custom-light: #7e66c9;
$custom-dark: #000000;
JSON
{
  "hex": "#342ab0",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 176
  },
  "hsl": {
    "h": 244.478,
    "s": 61.468,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40084,
    "c": 0.2004,
    "h": 275.7
  },
  "luminance": 0.05521
}

Semantic roles & 50–950 ramp

primary
#342AB0
secondary
#C0C670
accent
#E543D9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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