#342BB1#342BB1

#342BB1 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.3% C 0.201 H 275.5°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#342BB1
RGBrgb(52, 43, 177)
HSLhsl(244, 61%, 43%)
HSVhsv(244, 76%, 69%)
CMYKcmyk(70.6%, 75.7%, 0%, 30.6%)
CIE-LABlab(28.46, 46.06, -69.09)
CIE-LCHlch(28.46, 83.03, 303.69°)
OKLaboklab(40.32% 0.0192 -0.1997)
OKLCHoklch(40.32% 0.201 275.5)
XYZxyz(10.2133, 5.6312, 42.1351)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BB1 #A8B12B
analogous
#2B65B1 #342BB1 #772BB1
triadic
#342BB1 #B1342B #2BB134
tetradic
#342BB1 #B12B65 #A8B12B #2BB177
square
#342BB1 #B12B65 #A8B12B #2BB177
split-complementary
#342BB1 #B1772B #65B12B
monochromatic
#17134F #261F80 #342BB1 #5047D2 #7F78DE

Accessibility & contrast

On white

9.88
#342BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342BB1
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BB1#FFFFFF#000000##FFFFFF
##342BB11.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342bb1;
/* rgb */ color: rgb(52, 43, 177);
/* oklch */ color: oklch(40.3% 0.201 275.5);
Tailwind
colors: {
  custom: {
    50: '#7e67ca',
    500: '#342bb1',
    950: '#000000',
  },
}
SCSS
$custom: #342bb1;
$custom-light: #7e67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#342bb1",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 244.03,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40324,
    "c": 0.20066,
    "h": 275.5
  },
  "luminance": 0.05632
}

Semantic roles & 50–950 ramp

primary
#342BB1
secondary
#C0C672
accent
#E444D9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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