#342BB2#342BB2

#342BB2 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.4% C 0.202 H 275.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#342BB2
RGBrgb(52, 43, 178)
HSLhsl(244, 61%, 43%)
HSVhsv(244, 76%, 70%)
CMYKcmyk(70.8%, 75.8%, 0%, 30.2%)
CIE-LABlab(28.57, 46.38, -69.51)
CIE-LCHlch(28.57, 83.56, 303.71°)
OKLaboklab(40.43% 0.019 -0.201)
OKLCHoklch(40.43% 0.202 275.4)
XYZxyz(10.3133, 5.6712, 42.6620)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BB2 #A9B22B
analogous
#2B65B2 #342BB2 #772BB2
triadic
#342BB2 #B2342B #2BB234
tetradic
#342BB2 #B22B65 #A9B22B #2BB277
square
#342BB2 #B22B65 #A9B22B #2BB277
split-complementary
#342BB2 #B2772B #65B22B
monochromatic
#17134F #261F81 #342BB2 #5148D3 #8079DF

Accessibility & contrast

On white

9.84
#342BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#342BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BB2
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BB2#FFFFFF#000000##FFFFFF
##342BB21.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#003DB0
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342bb2;
/* rgb */ color: rgb(52, 43, 178);
/* oklch */ color: oklch(40.4% 0.202 275.4);
Tailwind
colors: {
  custom: {
    50: '#7f67ca',
    500: '#342bb2',
    950: '#000000',
  },
}
SCSS
$custom: #342bb2;
$custom-light: #7f67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#342bb2",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 244,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40429,
    "c": 0.20186,
    "h": 275.4
  },
  "luminance": 0.05672
}

Semantic roles & 50–950 ramp

primary
#342BB2
secondary
#C1C772
accent
#E444D9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #342BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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