#342E93#342E93

#342E93 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.8% C 0.159 H 278.2°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#342E93
RGBrgb(52, 46, 147)
HSLhsl(244, 52%, 38%)
HSVhsv(244, 69%, 58%)
CMYKcmyk(64.6%, 68.7%, 0%, 42.4%)
CIE-LABlab(26.13, 34.37, -54.73)
CIE-LCHlch(26.13, 64.63, 302.13°)
OKLaboklab(37.76% 0.0227 -0.1578)
OKLCHoklch(37.76% 0.159 278.2)
XYZxyz(7.6579, 4.7900, 28.1191)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E93 #8D932E
analogous
#2E5B93 #342E93 #662E93
triadic
#342E93 #93342E #2E9334
tetradic
#342E93 #932E5B #8D932E #2E9366
square
#342E93 #932E5B #8D932E #2E9366
split-complementary
#342E93 #93662E #5B932E
monochromatic
#131136 #241F64 #342E93 #443DC2 #716BD1

Accessibility & contrast

On white

10.72
#342E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#342E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E93
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E93#FFFFFF#000000##FFFFFF
##342E931.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004296
Deuteranopia (green-blind)
#003A91
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342e93;
/* rgb */ color: rgb(52, 46, 147);
/* oklch */ color: oklch(37.8% 0.159 278.2);
Tailwind
colors: {
  custom: {
    50: '#7867b4',
    500: '#342e93',
    950: '#000000',
  },
}
SCSS
$custom: #342e93;
$custom-light: #7867b4;
$custom-dark: #000000;
JSON
{
  "hex": "#342e93",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 147
  },
  "hsl": {
    "h": 243.564,
    "s": 52.332,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37763,
    "c": 0.15944,
    "h": 278.2
  },
  "luminance": 0.04791
}

Semantic roles & 50–950 ramp

primary
#342E93
secondary
#B3B865
accent
#DC4CD3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342E93

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

Preview Lab → · Contrast checker → · Palette generator →

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