#342C73#342C73

#342C73 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.5% C 0.118 H 283.5°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#342C73
RGBrgb(52, 44, 115)
HSLhsl(247, 45%, 31%)
HSVhsv(247, 62%, 45%)
CMYKcmyk(54.8%, 61.7%, 0%, 54.9%)
CIE-LABlab(22.89, 24.70, -39.91)
CIE-LCHlch(22.89, 46.94, 301.75°)
OKLaboklab(34.55% 0.0274 -0.1143)
OKLCHoklch(34.55% 0.118 283.5)
XYZxyz(5.4104, 3.7689, 16.6587)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C73 #6B732C
analogous
#2C4773 #342C73 #572C73
triadic
#342C73 #73342C #2C7334
tetradic
#342C73 #732C47 #6B732C #2C7357
square
#342C73 #732C47 #6B732C #2C7357
split-complementary
#342C73 #73572C #47732C
monochromatic
#0C0A1A #201B47 #342C73 #483D9F #655AC0

Accessibility & contrast

On white

11.97
#342C73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#342C73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C73
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C73#FFFFFF#000000##FFFFFF
##342C731.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003975
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#1A3D4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342c73;
/* rgb */ color: rgb(52, 44, 115);
/* oklch */ color: oklch(34.5% 0.118 283.5);
Tailwind
colors: {
  custom: {
    50: '#72659c',
    500: '#342c73',
    950: '#000000',
  },
}
SCSS
$custom: #342c73;
$custom-light: #72659c;
$custom-dark: #000000;
JSON
{
  "hex": "#342c73",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 115
  },
  "hsl": {
    "h": 246.761,
    "s": 44.654,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34548,
    "c": 0.11756,
    "h": 283.5
  },
  "luminance": 0.03769
}

Semantic roles & 50–950 ramp

primary
#342C73
secondary
#9CA556
accent
#D453C6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342C73

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

Preview Lab → · Contrast checker → · Palette generator →

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