#342BB0#342BB0

#342BB0 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.2% C 0.199 H 275.6°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#342BB0
RGBrgb(52, 43, 176)
HSLhsl(244, 61%, 43%)
HSVhsv(244, 76%, 69%)
CMYKcmyk(70.5%, 75.6%, 0%, 31%)
CIE-LABlab(28.36, 45.74, -68.66)
CIE-LCHlch(28.36, 82.50, 303.67°)
OKLaboklab(40.22% 0.0194 -0.1985)
OKLCHoklch(40.22% 0.199 275.6)
XYZxyz(10.1139, 5.5915, 41.6121)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BB0 #A7B02B
analogous
#2B64B0 #342BB0 #762BB0
triadic
#342BB0 #B0342B #2BB034
tetradic
#342BB0 #B02B64 #A7B02B #2BB076
square
#342BB0 #B02B64 #A7B02B #2BB076
split-complementary
#342BB0 #B0762B #64B02B
monochromatic
#17134E #251F7F #342BB0 #5046D2 #7E78DE

Accessibility & contrast

On white

9.91
#342BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#342BB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BB0
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BB0#FFFFFF#000000##FFFFFF
##342BB01.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342bb0;
/* rgb */ color: rgb(52, 43, 176);
/* oklch */ color: oklch(40.2% 0.199 275.6);
Tailwind
colors: {
  custom: {
    50: '#7e67c9',
    500: '#342bb0',
    950: '#000000',
  },
}
SCSS
$custom: #342bb0;
$custom-light: #7e67c9;
$custom-dark: #000000;
JSON
{
  "hex": "#342bb0",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 176
  },
  "hsl": {
    "h": 244.06,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40218,
    "c": 0.19945,
    "h": 275.6
  },
  "luminance": 0.05592
}

Semantic roles & 50–950 ramp

primary
#342BB0
secondary
#C0C671
accent
#E444D9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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