#334668#334668

#334668 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.4% C 0.063 H 261.6°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#334668
RGBrgb(51, 70, 104)
HSLhsl(218, 34%, 30%)
HSVhsv(218, 51%, 41%)
CMYKcmyk(51%, 32.7%, 0%, 59.2%)
CIE-LABlab(29.62, 3.03, -22.17)
CIE-LCHlch(29.62, 22.37, 277.78°)
OKLaboklab(39.42% -0.0092 -0.0622)
OKLCHoklch(39.42% 0.063 261.6)
XYZxyz(6.0533, 6.0832, 13.9492)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334668 #685533
analogous
#336068 #334668 #3A3368
triadic
#334668 #683346 #466833
tetradic
#334668 #683360 #685533 #33683A
square
#334668 #683360 #685533 #33683A
split-complementary
#334668 #683A33 #606833
monochromatic
#0B0F16 #1F2A3F #334668 #476291 #637FB2

Accessibility & contrast

On white

9.47
#334668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#334668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334668
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334668#FFFFFF#000000##FFFFFF
##3346681.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394869
Deuteranopia (green-blind)
#334467
Tritanopia (blue-blind)
#1D4D52
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334668;
/* rgb */ color: rgb(51, 70, 104);
/* oklch */ color: oklch(39.4% 0.063 261.6);
Tailwind
colors: {
  custom: {
    50: '#6e7993',
    500: '#334668',
    950: '#000000',
  },
}
SCSS
$custom: #334668;
$custom-light: #6e7993;
$custom-dark: #000000;
JSON
{
  "hex": "#334668",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 104
  },
  "hsl": {
    "h": 218.491,
    "s": 34.194,
    "l": 30.392
  },
  "oklch": {
    "l": 0.39416,
    "c": 0.06288,
    "h": 261.6
  },
  "luminance": 0.06084
}

Semantic roles & 50–950 ramp

primary
#334668
secondary
#99845E
accent
#A35ECA
background
#F6F7F9
surface
#ECEDF1
border
#C7C8CB
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #334668

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

Preview Lab → · Contrast checker → · Palette generator →

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