#342EB1#342EB1

#342EB1 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.198 H 275.1°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#342EB1
RGBrgb(52, 46, 177)
HSLhsl(243, 59%, 44%)
HSVhsv(243, 74%, 69%)
CMYKcmyk(70.6%, 74%, 0%, 30.6%)
CIE-LABlab(29.05, 44.40, -68.12)
CIE-LCHlch(29.05, 81.31, 303.10°)
OKLaboklab(40.74% 0.0176 -0.1969)
OKLCHoklch(40.74% 0.198 275.1)
XYZxyz(10.3264, 5.8574, 42.1728)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EB1 #ABB12E
analogous
#2E69B1 #342EB1 #752EB1
triadic
#342EB1 #B1342E #2EB134
tetradic
#342EB1 #B12E69 #ABB12E #2EB175
square
#342EB1 #B12E69 #ABB12E #2EB175
split-complementary
#342EB1 #B1752E #69B12E
monochromatic
#171550 #262180 #342EB1 #524CD0 #817CDD

Accessibility & contrast

On white

9.67
#342EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#342EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342EB1
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EB1#FFFFFF#000000##FFFFFF
##342EB11.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#003EAF
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342eb1;
/* rgb */ color: rgb(52, 46, 177);
/* oklch */ color: oklch(40.7% 0.198 275.1);
Tailwind
colors: {
  custom: {
    50: '#7e69ca',
    500: '#342eb1',
    950: '#000000',
  },
}
SCSS
$custom: #342eb1;
$custom-light: #7e69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#342eb1",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 242.748,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40739,
    "c": 0.19773,
    "h": 275.1
  },
  "luminance": 0.05858
}

Semantic roles & 50–950 ramp

primary
#342EB1
secondary
#C2C675
accent
#E246DB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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