#334366#334366

#334366 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.6% C 0.063 H 264.8°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#334366
RGBrgb(51, 67, 102)
HSLhsl(221, 33%, 30%)
HSVhsv(221, 50%, 40%)
CMYKcmyk(50%, 34.3%, 0%, 60%)
CIE-LABlab(28.58, 4.34, -22.52)
CIE-LCHlch(28.58, 22.93, 280.91°)
OKLaboklab(38.57% -0.0057 -0.0632)
OKLCHoklch(38.57% 0.063 264.8)
XYZxyz(5.7699, 5.6771, 13.3595)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334366 #665633
analogous
#335D66 #334366 #3C3366
triadic
#334366 #663343 #436633
tetradic
#334366 #66335D #665633 #33663C
square
#334366 #66335D #665633 #33663C
split-complementary
#334366 #663C33 #5D6633
monochromatic
#0A0D14 #1F283D #334366 #475E8F #637BB1

Accessibility & contrast

On white

9.83
#334366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#334366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334366
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334366#FFFFFF#000000##FFFFFF
##3343661.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364667
Deuteranopia (green-blind)
#314165
Tritanopia (blue-blind)
#1F4A50
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #334366;
/* rgb */ color: rgb(51, 67, 102);
/* oklch */ color: oklch(38.6% 0.063 264.8);
Tailwind
colors: {
  custom: {
    50: '#6e7692',
    500: '#334366',
    950: '#000000',
  },
}
SCSS
$custom: #334366;
$custom-light: #6e7692;
$custom-dark: #000000;
JSON
{
  "hex": "#334366",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 102
  },
  "hsl": {
    "h": 221.176,
    "s": 33.333,
    "l": 30
  },
  "oklch": {
    "l": 0.38574,
    "c": 0.06349,
    "h": 264.8
  },
  "luminance": 0.05677
}

Semantic roles & 50–950 ramp

primary
#334366
secondary
#97855E
accent
#A85EC9
background
#F6F7F8
surface
#ECEDF0
border
#C7C8CB
text
#07080D
muted
#7A7B7D

Preview Lab

Preview with #334366

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

Preview Lab → · Contrast checker → · Palette generator →

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