#342BB3#342BB3

#342BB3 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.5% C 0.203 H 275.3°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#342BB3
RGBrgb(52, 43, 179)
HSLhsl(244, 61%, 44%)
HSVhsv(244, 76%, 70%)
CMYKcmyk(70.9%, 76%, 0%, 29.8%)
CIE-LABlab(28.67, 46.70, -69.93)
CIE-LCHlch(28.67, 84.09, 303.74°)
OKLaboklab(40.53% 0.0188 -0.2022)
OKLCHoklch(40.53% 0.203 275.3)
XYZxyz(10.4141, 5.7115, 43.1927)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BB3 #AAB32B
analogous
#2B66B3 #342BB3 #782BB3
triadic
#342BB3 #B3342B #2BB334
tetradic
#342BB3 #B32B66 #AAB32B #2BB378
square
#342BB3 #B32B66 #AAB32B #2BB378
split-complementary
#342BB3 #B3782B #66B32B
monochromatic
#171350 #261F82 #342BB3 #5148D3 #8079DF

Accessibility & contrast

On white

9.80
#342BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#342BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BB3
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BB3#FFFFFF#000000##FFFFFF
##342BB31.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#00536D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342bb3;
/* rgb */ color: rgb(52, 43, 179);
/* oklch */ color: oklch(40.5% 0.203 275.3);
Tailwind
colors: {
  custom: {
    50: '#7f67cb',
    500: '#342bb3',
    950: '#000000',
  },
}
SCSS
$custom: #342bb3;
$custom-light: #7f67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#342bb3",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 243.971,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40534,
    "c": 0.20307,
    "h": 275.3
  },
  "luminance": 0.05712
}

Semantic roles & 50–950 ramp

primary
#342BB3
secondary
#C1C773
accent
#E443DA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #342BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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