#342A90#342A90

#342A90 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.160 H 279.4°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#342A90
RGBrgb(52, 42, 144)
HSLhsl(246, 55%, 36%)
HSVhsv(246, 71%, 56%)
CMYKcmyk(63.9%, 70.8%, 0%, 43.5%)
CIE-LABlab(24.95, 35.80, -54.81)
CIE-LCHlch(24.95, 65.47, 303.15°)
OKLaboklab(36.83% 0.0263 -0.1581)
OKLCHoklch(36.83% 0.16 279.4)
XYZxyz(7.2766, 4.3991, 26.8458)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A90 #86902A
analogous
#2A5390 #342A90 #672A90
triadic
#342A90 #90342A #2A9034
tetradic
#342A90 #902A53 #86902A #2A9067
square
#342A90 #902A53 #86902A #2A9067
split-complementary
#342A90 #90672A #53902A
monochromatic
#120E31 #231C61 #342A90 #4538BF #6E63D1

Accessibility & contrast

On white

11.17
#342A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#342A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A90
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A90#FFFFFF#000000##FFFFFF
##342A901.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#00378E
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342a90;
/* rgb */ color: rgb(52, 42, 144);
/* oklch */ color: oklch(36.8% 0.160 279.4);
Tailwind
colors: {
  custom: {
    50: '#7765b1',
    500: '#342a90',
    950: '#000000',
  },
}
SCSS
$custom: #342a90;
$custom-light: #7765b1;
$custom-dark: #000000;
JSON
{
  "hex": "#342a90",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 245.882,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36829,
    "c": 0.16023,
    "h": 279.4
  },
  "luminance": 0.044
}

Semantic roles & 50–950 ramp

primary
#342A90
secondary
#AFB75E
accent
#DE4AD0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #342A90

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

Preview Lab → · Contrast checker → · Palette generator →

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