#334166#334166

#334166 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.066 H 267.5°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#334166
RGBrgb(51, 65, 102)
HSLhsl(224, 33%, 30%)
HSVhsv(224, 50%, 40%)
CMYKcmyk(50%, 36.3%, 0%, 60%)
CIE-LABlab(27.96, 5.68, -23.49)
CIE-LCHlch(27.96, 24.16, 283.59°)
OKLaboklab(38.09% -0.0029 -0.0661)
OKLCHoklch(38.09% 0.066 267.5)
XYZxyz(5.6530, 5.4434, 13.3206)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334166 #665833
analogous
#335B66 #334166 #3E3366
triadic
#334166 #663341 #416633
tetradic
#334166 #66335B #665833 #33663E
square
#334166 #66335B #665833 #33663E
split-complementary
#334166 #663E33 #5B6633
monochromatic
#0A0D14 #1F273D #334166 #475B8F #6378B1

Accessibility & contrast

On white

10.05
#334166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334166
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334166#FFFFFF#000000##FFFFFF
##3341661.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334468
Deuteranopia (green-blind)
#2E4065
Tritanopia (blue-blind)
#1F494E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #334166;
/* rgb */ color: rgb(51, 65, 102);
/* oklch */ color: oklch(38.1% 0.066 267.5);
Tailwind
colors: {
  custom: {
    50: '#6e7592',
    500: '#334166',
    950: '#000000',
  },
}
SCSS
$custom: #334166;
$custom-light: #6e7592;
$custom-dark: #000000;
JSON
{
  "hex": "#334166",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 102
  },
  "hsl": {
    "h": 223.529,
    "s": 33.333,
    "l": 30
  },
  "oklch": {
    "l": 0.38092,
    "c": 0.06612,
    "h": 267.5
  },
  "luminance": 0.05444
}

Semantic roles & 50–950 ramp

primary
#334166
secondary
#97875E
accent
#AC5EC9
background
#F6F7F8
surface
#ECEDF0
border
#C7C8CB
text
#07080D
muted
#7A7B7D

Preview Lab

Preview with #334166

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

Preview Lab → · Contrast checker → · Palette generator →

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