#342BA0#342BA0

#342BA0 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.180 H 277.3°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#342BA0
RGBrgb(52, 43, 160)
HSLhsl(245, 58%, 40%)
HSVhsv(245, 73%, 63%)
CMYKcmyk(67.5%, 73.1%, 0%, 37.3%)
CIE-LABlab(26.72, 40.53, -61.71)
CIE-LCHlch(26.72, 73.83, 303.30°)
OKLaboklab(38.57% 0.0227 -0.1782)
OKLCHoklch(38.57% 0.18 277.3)
XYZxyz(8.6232, 4.9951, 33.7606)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BA0 #97A02B
analogous
#2B5DA0 #342BA0 #6E2BA0
triadic
#342BA0 #A0342B #2BA034
tetradic
#342BA0 #A02B5D #97A02B #2BA06E
square
#342BA0 #A02B5D #97A02B #2BA06E
split-complementary
#342BA0 #A06E2B #5DA02B
monochromatic
#151140 #241E70 #342BA0 #483DCB #766ED8

Accessibility & contrast

On white

10.50
#342BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#342BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BA0
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BA0#FFFFFF#000000##FFFFFF
##342BA01.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#003A9E
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342ba0;
/* rgb */ color: rgb(52, 43, 160);
/* oklch */ color: oklch(38.6% 0.180 277.3);
Tailwind
colors: {
  custom: {
    50: '#7b66bd',
    500: '#342ba0',
    950: '#000000',
  },
}
SCSS
$custom: #342ba0;
$custom-light: #7b66bd;
$custom-dark: #000000;
JSON
{
  "hex": "#342ba0",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 160
  },
  "hsl": {
    "h": 244.615,
    "s": 57.635,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38568,
    "c": 0.17968,
    "h": 277.3
  },
  "luminance": 0.04996
}

Semantic roles & 50–950 ramp

primary
#342BA0
secondary
#B8BF68
accent
#E147D5
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #342BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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