#334496#334496

#334496 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.136 H 270.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#334496
RGBrgb(51, 68, 150)
HSLhsl(230, 49%, 39%)
HSVhsv(230, 66%, 59%)
CMYKcmyk(66%, 54.7%, 0%, 41.2%)
CIE-LABlab(31.90, 20.90, -47.18)
CIE-LCHlch(31.90, 51.60, 293.89°)
OKLaboklab(42.08% 0.0016 -0.1355)
OKLCHoklch(42.08% 0.136 270.7)
XYZxyz(8.9355, 7.0393, 29.7361)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334496 #968533
analogous
#337696 #334496 #543396
triadic
#334496 #963344 #449633
tetradic
#334496 #963376 #968533 #339654
square
#334496 #963376 #968533 #339654
split-complementary
#334496 #965433 #769633
monochromatic
#141B3B #232F68 #334496 #465BC0 #7484D0

Accessibility & contrast

On white

8.72
#334496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#334496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334496
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334496#FFFFFF#000000##FFFFFF
##3344961.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5099
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334496;
/* rgb */ color: rgb(51, 68, 150);
/* oklch */ color: oklch(42.1% 0.136 270.7);
Tailwind
colors: {
  custom: {
    50: '#7677b5',
    500: '#334496',
    950: '#000000',
  },
}
SCSS
$custom: #334496;
$custom-light: #7677b5;
$custom-dark: #000000;
JSON
{
  "hex": "#334496",
  "rgb": {
    "r": 51,
    "g": 68,
    "b": 150
  },
  "hsl": {
    "h": 229.697,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42082,
    "c": 0.1355,
    "h": 270.7
  },
  "luminance": 0.0704
}

Semantic roles & 50–950 ramp

primary
#334496
secondary
#B8AB6D
accent
#C14FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334496

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

Preview Lab → · Contrast checker → · Palette generator →

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