#342973#342973

#342973 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.122 H 284.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#342973
RGBrgb(52, 41, 115)
HSLhsl(249, 47%, 31%)
HSVhsv(249, 64%, 45%)
CMYKcmyk(54.8%, 64.3%, 0%, 54.9%)
CIE-LABlab(22.14, 26.67, -41.14)
CIE-LCHlch(22.14, 49.03, 302.96°)
OKLaboklab(33.99% 0.0308 -0.1179)
OKLCHoklch(33.99% 0.122 284.6)
XYZxyz(5.3027, 3.5535, 16.6228)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342973 #687329
analogous
#294373 #342973 #592973
triadic
#342973 #733429 #297334
tetradic
#342973 #732943 #687329 #297359
square
#342973 #732943 #687329 #297359
split-complementary
#342973 #735929 #437329
monochromatic
#0B0919 #201946 #342973 #4839A0 #6554C2

Accessibility & contrast

On white

12.27
#342973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#342973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342973
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342973#FFFFFF#000000##FFFFFF
##3429731.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#003371
Tritanopia (blue-blind)
#1B3B4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342973;
/* rgb */ color: rgb(52, 41, 115);
/* oklch */ color: oklch(34.0% 0.122 284.6);
Tailwind
colors: {
  custom: {
    50: '#72639c',
    500: '#342973',
    950: '#000000',
  },
}
SCSS
$custom: #342973;
$custom-light: #72639c;
$custom-dark: #000000;
JSON
{
  "hex": "#342973",
  "rgb": {
    "r": 52,
    "g": 41,
    "b": 115
  },
  "hsl": {
    "h": 248.919,
    "s": 47.436,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33993,
    "c": 0.1219,
    "h": 284.6
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#342973
secondary
#99A553
accent
#D751C3
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #342973

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

Preview Lab → · Contrast checker → · Palette generator →

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