#342E94#342E94

#342E94 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.161 H 278.0°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#342E94
RGBrgb(52, 46, 148)
HSLhsl(244, 53%, 38%)
HSVhsv(244, 69%, 58%)
CMYKcmyk(64.9%, 68.9%, 0%, 42%)
CIE-LABlab(26.22, 34.71, -55.19)
CIE-LCHlch(26.22, 65.20, 302.16°)
OKLaboklab(37.86% 0.0225 -0.1592)
OKLCHoklch(37.86% 0.161 278)
XYZxyz(7.7367, 4.8216, 28.5342)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E94 #8E942E
analogous
#2E5B94 #342E94 #672E94
triadic
#342E94 #94342E #2E9434
tetradic
#342E94 #942E5B #8E942E #2E9467
square
#342E94 #942E5B #8E942E #2E9467
split-complementary
#342E94 #94672E #5B942E
monochromatic
#131137 #241F65 #342E94 #443DC3 #716BD1

Accessibility & contrast

On white

10.69
#342E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342E94
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E94#FFFFFF#000000##FFFFFF
##342E941.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#003A92
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342e94;
/* rgb */ color: rgb(52, 46, 148);
/* oklch */ color: oklch(37.9% 0.161 278.0);
Tailwind
colors: {
  custom: {
    50: '#7867b4',
    500: '#342e94',
    950: '#000000',
  },
}
SCSS
$custom: #342e94;
$custom-light: #7867b4;
$custom-dark: #000000;
JSON
{
  "hex": "#342e94",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 148
  },
  "hsl": {
    "h": 243.529,
    "s": 52.577,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37858,
    "c": 0.16076,
    "h": 278
  },
  "luminance": 0.04822
}

Semantic roles & 50–950 ramp

primary
#342E94
secondary
#B3B866
accent
#DC4CD4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342E94

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

Preview Lab → · Contrast checker → · Palette generator →

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