#334266#334266

#334266 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.3% C 0.065 H 266.2°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#334266
RGBrgb(51, 66, 102)
HSLhsl(222, 33%, 30%)
HSVhsv(222, 50%, 40%)
CMYKcmyk(50%, 35.3%, 0%, 60%)
CIE-LABlab(28.27, 5.01, -23.00)
CIE-LCHlch(28.27, 23.54, 282.29°)
OKLaboklab(38.33% -0.0043 -0.0646)
OKLCHoklch(38.33% 0.065 266.2)
XYZxyz(5.7110, 5.5592, 13.3399)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334266 #665733
analogous
#335B66 #334266 #3E3366
triadic
#334266 #663342 #426633
tetradic
#334266 #66335B #665733 #33663E
square
#334266 #66335B #665733 #33663E
split-complementary
#334266 #663E33 #5B6633
monochromatic
#0A0D14 #1F283D #334266 #475C8F #637AB1

Accessibility & contrast

On white

9.94
#334266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#334266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334266
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334266#FFFFFF#000000##FFFFFF
##3342661.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354567
Deuteranopia (green-blind)
#2F4165
Tritanopia (blue-blind)
#1F4A4F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #334266;
/* rgb */ color: rgb(51, 66, 102);
/* oklch */ color: oklch(38.3% 0.065 266.2);
Tailwind
colors: {
  custom: {
    50: '#6e7692',
    500: '#334266',
    950: '#000000',
  },
}
SCSS
$custom: #334266;
$custom-light: #6e7692;
$custom-dark: #000000;
JSON
{
  "hex": "#334266",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 102
  },
  "hsl": {
    "h": 222.353,
    "s": 33.333,
    "l": 30
  },
  "oklch": {
    "l": 0.38333,
    "c": 0.06478,
    "h": 266.2
  },
  "luminance": 0.0556
}

Semantic roles & 50–950 ramp

primary
#334266
secondary
#97865E
accent
#AA5EC9
background
#F6F7F8
surface
#ECEDF0
border
#C7C8CB
text
#07080D
muted
#7A7B7D

Preview Lab

Preview with #334266

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

Preview Lab → · Contrast checker → · Palette generator →

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