#334492#334492

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

Color values

HEX#334492
RGBrgb(51, 68, 146)
HSLhsl(229, 48%, 39%)
HSVhsv(229, 65%, 57%)
CMYKcmyk(65.1%, 53.4%, 0%, 42.7%)
CIE-LABlab(31.61, 19.43, -45.21)
CIE-LCHlch(31.61, 49.20, 293.26°)
OKLaboklab(41.77% 0.0013 -0.1297)
OKLCHoklch(41.77% 0.13 270.6)
XYZxyz(8.6189, 6.9126, 28.0686)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334492 #928133
analogous
#337392 #334492 #513392
triadic
#334492 #923344 #449233
tetradic
#334492 #923373 #928133 #339251
square
#334492 #923373 #928133 #339251
split-complementary
#334492 #925133 #739233
monochromatic
#131A37 #232F65 #334492 #445ABE #7282CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##334492#FFFFFF#000000##FFFFFF
##3344921.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)
#144F95
Deuteranopia (green-blind)
#004690
Tritanopia (blue-blind)
#005664
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334492;
/* rgb */ color: rgb(51, 68, 146);
/* oklch */ color: oklch(41.8% 0.130 270.6);
Tailwind
colors: {
  custom: {
    50: '#7577b2',
    500: '#334492',
    950: '#000000',
  },
}
SCSS
$custom: #334492;
$custom-light: #7577b2;
$custom-dark: #000000;
JSON
{
  "hex": "#334492",
  "rgb": {
    "r": 51,
    "g": 68,
    "b": 146
  },
  "hsl": {
    "h": 229.263,
    "s": 48.223,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41772,
    "c": 0.12969,
    "h": 270.6
  },
  "luminance": 0.06913
}

Semantic roles & 50–950 ramp

primary
#334492
secondary
#B6A86B
accent
#BF50D8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334492

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

Preview Lab → · Contrast checker → · Palette generator →

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