#342E98#342E98

#342E98 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.166 H 277.6°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#342E98
RGBrgb(52, 46, 152)
HSLhsl(243, 54%, 39%)
HSVhsv(243, 70%, 60%)
CMYKcmyk(65.8%, 69.7%, 0%, 40.4%)
CIE-LABlab(26.59, 36.07, -57.04)
CIE-LCHlch(26.59, 67.48, 302.31°)
OKLaboklab(38.24% 0.0219 -0.1646)
OKLCHoklch(38.24% 0.166 277.6)
XYZxyz(8.0588, 4.9504, 30.2305)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E98 #92982E
analogous
#2E5D98 #342E98 #692E98
triadic
#342E98 #98342E #2E9834
tetradic
#342E98 #982E5D #92982E #2E9869
square
#342E98 #982E5D #92982E #2E9869
split-complementary
#342E98 #98692E #5D982E
monochromatic
#14123A #242069 #342E98 #463EC5 #736DD3

Accessibility & contrast

On white

10.55
#342E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#342E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E98
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E98#FFFFFF#000000##FFFFFF
##342E981.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342e98;
/* rgb */ color: rgb(52, 46, 152);
/* oklch */ color: oklch(38.2% 0.166 277.6);
Tailwind
colors: {
  custom: {
    50: '#7968b7',
    500: '#342e98',
    950: '#000000',
  },
}
SCSS
$custom: #342e98;
$custom-light: #7968b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342e98",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 243.396,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38241,
    "c": 0.16604,
    "h": 277.6
  },
  "luminance": 0.04951
}

Semantic roles & 50–950 ramp

primary
#342E98
secondary
#B5BA68
accent
#DD4BD5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342E98

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

Preview Lab → · Contrast checker → · Palette generator →

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