#334692#334692

#334692 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.2% C 0.127 H 269.7°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#334692
RGBrgb(51, 70, 146)
HSLhsl(228, 48%, 39%)
HSVhsv(228, 65%, 57%)
CMYKcmyk(65.1%, 52.1%, 0%, 42.7%)
CIE-LABlab(32.17, 18.09, -44.30)
CIE-LCHlch(32.17, 47.85, 292.21°)
OKLaboklab(42.19% -0.0007 -0.127)
OKLCHoklch(42.19% 0.127 269.7)
XYZxyz(8.7420, 7.1587, 28.1096)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334692 #927F33
analogous
#337592 #334692 #4F3392
triadic
#334692 #923346 #469233
tetradic
#334692 #923375 #927F33 #33924F
square
#334692 #923375 #927F33 #33924F
split-complementary
#334692 #924F33 #759233
monochromatic
#131B37 #233065 #334692 #445DBE #7284CE

Accessibility & contrast

On white

8.64
#334692 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#334692 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334692
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334692#FFFFFF#000000##FFFFFF
##3346921.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5095
Deuteranopia (green-blind)
#004890
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334692;
/* rgb */ color: rgb(51, 70, 146);
/* oklch */ color: oklch(42.2% 0.127 269.7);
Tailwind
colors: {
  custom: {
    50: '#7579b2',
    500: '#334692',
    950: '#000000',
  },
}
SCSS
$custom: #334692;
$custom-light: #7579b2;
$custom-dark: #000000;
JSON
{
  "hex": "#334692",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 146
  },
  "hsl": {
    "h": 228,
    "s": 48.223,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42194,
    "c": 0.12701,
    "h": 269.7
  },
  "luminance": 0.07159
}

Semantic roles & 50–950 ramp

primary
#334692
secondary
#B6A76B
accent
#BD50D8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334692

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

Preview Lab → · Contrast checker → · Palette generator →

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