#334161#334161

#334161 is a dark, muted blue. Relative luminance 0.053; OKLCH L 37.8% C 0.058 H 265.6°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#334161
RGBrgb(51, 65, 97)
HSLhsl(222, 31%, 29%)
HSVhsv(222, 47%, 38%)
CMYKcmyk(47.4%, 33%, 0%, 62%)
CIE-LABlab(27.70, 3.99, -20.68)
CIE-LCHlch(27.70, 21.07, 280.93°)
OKLaboklab(37.81% -0.0044 -0.0579)
OKLCHoklch(37.81% 0.058 265.6)
XYZxyz(5.4125, 5.3472, 12.0538)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334161 #615333
analogous
#335861 #334161 #3C3361
triadic
#334161 #613341 #416133
tetradic
#334161 #613358 #615333 #33613C
square
#334161 #613358 #615333 #33613C
split-complementary
#334161 #613C33 #586133
monochromatic
#0B0D14 #1E2639 #334161 #485C89 #6279AC

Accessibility & contrast

On white

10.15
#334161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#334161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334161
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334161#FFFFFF#000000##FFFFFF
##3341611.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354462
Deuteranopia (green-blind)
#314060
Tritanopia (blue-blind)
#22484C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #334161;
/* rgb */ color: rgb(51, 65, 97);
/* oklch */ color: oklch(37.8% 0.058 265.6);
Tailwind
colors: {
  custom: {
    50: '#6d758e',
    500: '#334161',
    950: '#000000',
  },
}
SCSS
$custom: #334161;
$custom-light: #6d758e;
$custom-dark: #000000;
JSON
{
  "hex": "#334161",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 97
  },
  "hsl": {
    "h": 221.739,
    "s": 31.081,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37805,
    "c": 0.05811,
    "h": 265.6
  },
  "luminance": 0.05347
}

Semantic roles & 50–950 ramp

primary
#334161
secondary
#92825E
accent
#A861C7
background
#F6F7F8
surface
#ECEDF0
border
#C7C8CB
text
#07080C
muted
#7A7B7D

Preview Lab

Preview with #334161

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

Preview Lab → · Contrast checker → · Palette generator →

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