#334261#334261

#334261 is a dark, muted blue. Relative luminance 0.055; OKLCH L 38.0% C 0.057 H 264.1°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#334261
RGBrgb(51, 66, 97)
HSLhsl(220, 31%, 29%)
HSVhsv(220, 47%, 38%)
CMYKcmyk(47.4%, 32%, 0%, 62%)
CIE-LABlab(28.02, 3.33, -20.20)
CIE-LCHlch(28.02, 20.47, 279.35°)
OKLaboklab(38.05% -0.0058 -0.0565)
OKLCHoklch(38.05% 0.057 264.1)
XYZxyz(5.4704, 5.4630, 12.0732)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334261 #615233
analogous
#335961 #334261 #3B3361
triadic
#334261 #613342 #426133
tetradic
#334261 #613359 #615233 #33613B
square
#334261 #613359 #615233 #33613B
split-complementary
#334261 #613B33 #596133
monochromatic
#0B0E14 #1E2739 #334261 #485D89 #627AAC

Accessibility & contrast

On white

10.04
#334261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#334261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334261
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334261#FFFFFF#000000##FFFFFF
##3342611.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374462
Deuteranopia (green-blind)
#324060
Tritanopia (blue-blind)
#22494D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #334261;
/* rgb */ color: rgb(51, 66, 97);
/* oklch */ color: oklch(38.0% 0.057 264.1);
Tailwind
colors: {
  custom: {
    50: '#6d768e',
    500: '#334261',
    950: '#000000',
  },
}
SCSS
$custom: #334261;
$custom-light: #6d768e;
$custom-dark: #000000;
JSON
{
  "hex": "#334261",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 97
  },
  "hsl": {
    "h": 220.435,
    "s": 31.081,
    "l": 29.02
  },
  "oklch": {
    "l": 0.38048,
    "c": 0.05682,
    "h": 264.1
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#334261
secondary
#92815E
accent
#A661C7
background
#F6F7F8
surface
#ECEDF0
border
#C7C8CB
text
#07080C
muted
#7A7B7D

Preview Lab

Preview with #334261

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

Preview Lab → · Contrast checker → · Palette generator →

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