#334396#334396

#334396 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.9% C 0.137 H 271.1°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#334396
RGBrgb(51, 67, 150)
HSLhsl(230, 49%, 39%)
HSVhsv(230, 66%, 59%)
CMYKcmyk(66%, 55.3%, 0%, 41.2%)
CIE-LABlab(31.62, 21.57, -47.62)
CIE-LCHlch(31.62, 52.28, 294.37°)
OKLaboklab(41.88% 0.0026 -0.1368)
OKLCHoklch(41.88% 0.137 271.1)
XYZxyz(8.8756, 6.9193, 29.7161)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334396 #968633
analogous
#337596 #334396 #553396
triadic
#334396 #963343 #439633
tetradic
#334396 #963375 #968633 #339655
square
#334396 #963375 #968633 #339655
split-complementary
#334396 #965533 #759633
monochromatic
#141A3B #232F68 #334396 #465AC0 #7483D0

Accessibility & contrast

On white

8.81
#334396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#334396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334396
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334396#FFFFFF#000000##FFFFFF
##3343961.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054F99
Deuteranopia (green-blind)
#004694
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334396;
/* rgb */ color: rgb(51, 67, 150);
/* oklch */ color: oklch(41.9% 0.137 271.1);
Tailwind
colors: {
  custom: {
    50: '#7676b5',
    500: '#334396',
    950: '#000000',
  },
}
SCSS
$custom: #334396;
$custom-light: #7676b5;
$custom-dark: #000000;
JSON
{
  "hex": "#334396",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 150
  },
  "hsl": {
    "h": 230.303,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41876,
    "c": 0.13683,
    "h": 271.1
  },
  "luminance": 0.0692
}

Semantic roles & 50–950 ramp

primary
#334396
secondary
#B8AC6D
accent
#C34FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334396

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

Preview Lab → · Contrast checker → · Palette generator →

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