#343271#343271

#343271 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.6% C 0.106 H 281.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#343271
RGBrgb(52, 50, 113)
HSLhsl(242, 39%, 32%)
HSVhsv(242, 56%, 44%)
CMYKcmyk(54%, 55.8%, 0%, 55.7%)
CIE-LABlab(24.33, 19.98, -36.31)
CIE-LCHlch(24.33, 41.44, 298.82°)
OKLaboklab(35.57% 0.0202 -0.1037)
OKLCHoklch(35.57% 0.106 281)
XYZxyz(5.5365, 4.2032, 16.1391)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343271 #6F7132
analogous
#325071 #343271 #543271
triadic
#343271 #713432 #327134
tetradic
#343271 #713250 #6F7132 #327154
square
#343271 #713250 #6F7132 #327154
split-complementary
#343271 #715432 #507132
monochromatic
#0D0C1C #201F47 #343271 #48459B #6663BA

Accessibility & contrast

On white

11.41
#343271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#343271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343271
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343271#FFFFFF#000000##FFFFFF
##3432711.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3C73
Deuteranopia (green-blind)
#083870
Tritanopia (blue-blind)
#1B404C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #343271;
/* rgb */ color: rgb(52, 50, 113);
/* oklch */ color: oklch(35.6% 0.106 281.0);
Tailwind
colors: {
  custom: {
    50: '#716a9a',
    500: '#343271',
    950: '#000000',
  },
}
SCSS
$custom: #343271;
$custom-light: #716a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#343271",
  "rgb": {
    "r": 52,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 241.905,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35568,
    "c": 0.10561,
    "h": 281
  },
  "luminance": 0.04204
}

Semantic roles & 50–950 ramp

primary
#343271
secondary
#A0A25D
accent
#CF59CB
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #343271

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

Preview Lab → · Contrast checker → · Palette generator →

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