#342B67#342B67

#342B67 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.4% C 0.101 H 286.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#342B67
RGBrgb(52, 43, 103)
HSLhsl(249, 41%, 29%)
HSVhsv(249, 58%, 40%)
CMYKcmyk(49.5%, 58.3%, 0%, 59.6%)
CIE-LABlab(21.71, 21.32, -34.07)
CIE-LCHlch(21.71, 40.19, 302.03°)
OKLaboklab(33.39% 0.0286 -0.0971)
OKLCHoklch(33.39% 0.101 286.4)
XYZxyz(4.7275, 3.4369, 13.2436)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B67 #5E672B
analogous
#2B4067 #342B67 #522B67
triadic
#342B67 #67342B #2B6734
tetradic
#342B67 #672B40 #5E672B #2B6752
square
#342B67 #672B40 #5E672B #2B6752
split-complementary
#342B67 #67522B #40672B
monochromatic
#0B0916 #1E193C #342B67 #4A3D92 #6355B8

Accessibility & contrast

On white

12.45
#342B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#342B67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B67
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B67#FFFFFF#000000##FFFFFF
##342B671.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093669
Deuteranopia (green-blind)
#083266
Tritanopia (blue-blind)
#233844
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #342b67;
/* rgb */ color: rgb(52, 43, 103);
/* oklch */ color: oklch(33.4% 0.101 286.4);
Tailwind
colors: {
  custom: {
    50: '#706493',
    500: '#342b67',
    950: '#000000',
  },
}
SCSS
$custom: #342b67;
$custom-light: #706493;
$custom-dark: #000000;
JSON
{
  "hex": "#342b67",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 103
  },
  "hsl": {
    "h": 249,
    "s": 41.096,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33386,
    "c": 0.10126,
    "h": 286.4
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#342B67
secondary
#8F9955
accent
#D157BF
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#08050D
muted
#7B7A7E

Preview Lab

Preview with #342B67

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

Preview Lab → · Contrast checker → · Palette generator →

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