#342394#342394

#342394 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.173 H 280.2°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#342394
RGBrgb(52, 35, 148)
HSLhsl(249, 62%, 36%)
HSVhsv(249, 76%, 58%)
CMYKcmyk(64.9%, 76.4%, 0%, 42%)
CIE-LABlab(23.90, 41.14, -59.01)
CIE-LCHlch(23.90, 71.93, 304.88°)
OKLaboklab(36.2% 0.0305 -0.1703)
OKLCHoklch(36.2% 0.173 280.2)
XYZxyz(7.3608, 4.0697, 28.4089)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342394 #839423
analogous
#234A94 #342394 #6C2394
triadic
#342394 #943423 #239434
tetradic
#342394 #94234A #839423 #23946C
square
#342394 #94234A #839423 #23946C
split-complementary
#342394 #946C23 #4A9423
monochromatic
#110C31 #231763 #342394 #452FC5 #6D5AD8

Accessibility & contrast

On white

11.58
#342394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342394
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342394#FFFFFF#000000##FFFFFF
##3423941.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342394;
/* rgb */ color: rgb(52, 35, 148);
/* oklch */ color: oklch(36.2% 0.173 280.2);
Tailwind
colors: {
  custom: {
    50: '#7960b5',
    500: '#342394',
    950: '#000000',
  },
}
SCSS
$custom: #342394;
$custom-light: #7960b5;
$custom-dark: #000000;
JSON
{
  "hex": "#342394",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 249.027,
    "s": 61.749,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36203,
    "c": 0.17301,
    "h": 280.2
  },
  "luminance": 0.0407
}

Semantic roles & 50–950 ramp

primary
#342394
secondary
#ADBC57
accent
#E543CC
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342394

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

Preview Lab → · Contrast checker → · Palette generator →

#342394 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva