#342F83#342F83

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

Color values

HEX#342F83
RGBrgb(52, 47, 131)
HSLhsl(244, 47%, 35%)
HSVhsv(244, 64%, 51%)
CMYKcmyk(60.3%, 64.1%, 0%, 48.6%)
CIE-LABlab(24.96, 28.23, -46.70)
CIE-LCHlch(24.96, 54.57, 301.15°)
OKLaboklab(36.47% 0.0234 -0.1342)
OKLCHoklch(36.47% 0.136 279.9)
XYZxyz(6.5281, 4.4013, 21.9739)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F83 #7E832F
analogous
#2F5483 #342F83 #5E2F83
triadic
#342F83 #83342F #2F8334
tetradic
#342F83 #832F54 #7E832F #2F835E
square
#342F83 #832F54 #7E832F #2F835E
split-complementary
#342F83 #835E2F #54832F
monochromatic
#100F29 #221F56 #342F83 #463FB0 #6B65C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342F83#FFFFFF#000000##FFFFFF
##342F831.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)
#003E86
Deuteranopia (green-blind)
#003881
Tritanopia (blue-blind)
#014454
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342f83;
/* rgb */ color: rgb(52, 47, 131);
/* oklch */ color: oklch(36.5% 0.136 279.9);
Tailwind
colors: {
  custom: {
    50: '#7468a8',
    500: '#342f83',
    950: '#000000',
  },
}
SCSS
$custom: #342f83;
$custom-light: #7468a8;
$custom-dark: #000000;
JSON
{
  "hex": "#342f83",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 243.571,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36474,
    "c": 0.13627,
    "h": 279.9
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#342F83
secondary
#AAAF5F
accent
#D751CF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342F83

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

Preview Lab → · Contrast checker → · Palette generator →

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