#342888#342888

#342888 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.152 H 281.1°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#342888
RGBrgb(52, 40, 136)
HSLhsl(248, 55%, 35%)
HSVhsv(248, 71%, 53%)
CMYKcmyk(61.8%, 70.6%, 0%, 46.7%)
CIE-LABlab(23.75, 34.34, -51.79)
CIE-LCHlch(23.75, 62.15, 303.55°)
OKLaboklab(35.74% 0.0293 -0.1492)
OKLCHoklch(35.74% 0.152 281.1)
XYZxyz(6.6175, 4.0248, 23.7159)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342888 #7C8828
analogous
#284C88 #342888 #642888
triadic
#342888 #883428 #288834
tetradic
#342888 #88284C #7C8828 #288864
square
#342888 #88284C #7C8828 #288864
split-complementary
#342888 #886428 #4C8828
monochromatic
#100C29 #221A59 #342888 #4636B7 #6A5BCF

Accessibility & contrast

On white

11.63
#342888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342888
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342888#FFFFFF#000000##FFFFFF
##3428881.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342888;
/* rgb */ color: rgb(52, 40, 136);
/* oklch */ color: oklch(35.7% 0.152 281.1);
Tailwind
colors: {
  custom: {
    50: '#7663ac',
    500: '#342888',
    950: '#000000',
  },
}
SCSS
$custom: #342888;
$custom-light: #7663ac;
$custom-dark: #000000;
JSON
{
  "hex": "#342888",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 247.5,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35739,
    "c": 0.15206,
    "h": 281.1
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#342888
secondary
#A9B458
accent
#DE4ACB
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342888

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

Preview Lab → · Contrast checker → · Palette generator →

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