#342E63#342E63

#342E63 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.7% C 0.090 H 285.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#342E63
RGBrgb(52, 46, 99)
HSLhsl(247, 37%, 28%)
HSVhsv(247, 54%, 39%)
CMYKcmyk(47.5%, 53.5%, 0%, 61.2%)
CIE-LABlab(22.25, 17.94, -30.60)
CIE-LCHlch(22.25, 35.47, 300.37°)
OKLaboklab(33.69% 0.0243 -0.0869)
OKLCHoklch(33.69% 0.09 285.6)
XYZxyz(4.6446, 3.5847, 12.2492)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E63 #5D632E
analogous
#2E4263 #342E63 #4E2E63
triadic
#342E63 #63342E #2E6334
tetradic
#342E63 #632E42 #5D632E #2E634E
square
#342E63 #632E42 #5D632E #2E634E
split-complementary
#342E63 #634E2E #42632E
monochromatic
#0B0A15 #1E1B39 #342E63 #4A418D #6359B2

Accessibility & contrast

On white

12.23
#342E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#342E63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E63
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E63#FFFFFF#000000##FFFFFF
##342E631.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173765
Deuteranopia (green-blind)
#153462
Tritanopia (blue-blind)
#253944
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342e63;
/* rgb */ color: rgb(52, 46, 99);
/* oklch */ color: oklch(33.7% 0.090 285.6);
Tailwind
colors: {
  custom: {
    50: '#6f6690',
    500: '#342e63',
    950: '#000000',
  },
}
SCSS
$custom: #342e63;
$custom-light: #6f6690;
$custom-dark: #000000;
JSON
{
  "hex": "#342e63",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 99
  },
  "hsl": {
    "h": 246.792,
    "s": 36.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33693,
    "c": 0.09028,
    "h": 285.6
  },
  "luminance": 0.03585
}

Semantic roles & 50–950 ramp

primary
#342E63
secondary
#8E9558
accent
#CD5BC0
background
#F6F6F8
surface
#ECEBF0
border
#C7C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #342E63

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

Preview Lab → · Contrast checker → · Palette generator →

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