#334792#334792

#334792 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.126 H 269.2°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#334792
RGBrgb(51, 71, 146)
HSLhsl(227, 48%, 39%)
HSVhsv(227, 65%, 57%)
CMYKcmyk(65.1%, 51.4%, 0%, 42.7%)
CIE-LABlab(32.45, 17.42, -43.85)
CIE-LCHlch(32.45, 47.18, 291.66°)
OKLaboklab(42.41% -0.0017 -0.1257)
OKLCHoklch(42.41% 0.126 269.2)
XYZxyz(8.8050, 7.2848, 28.1307)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334792 #927E33
analogous
#337692 #334792 #4E3392
triadic
#334792 #923347 #479233
tetradic
#334792 #923376 #927E33 #33924E
square
#334792 #923376 #927E33 #33924E
split-complementary
#334792 #924E33 #769233
monochromatic
#131B37 #233165 #334792 #445EBE #7285CE

Accessibility & contrast

On white

8.55
#334792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#334792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334792
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334792#FFFFFF#000000##FFFFFF
##3347921.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334792;
/* rgb */ color: rgb(51, 71, 146);
/* oklch */ color: oklch(42.4% 0.126 269.2);
Tailwind
colors: {
  custom: {
    50: '#7579b2',
    500: '#334792',
    950: '#000000',
  },
}
SCSS
$custom: #334792;
$custom-light: #7579b2;
$custom-dark: #000000;
JSON
{
  "hex": "#334792",
  "rgb": {
    "r": 51,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 227.368,
    "s": 48.223,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42407,
    "c": 0.12567,
    "h": 269.2
  },
  "luminance": 0.07286
}

Semantic roles & 50–950 ramp

primary
#334792
secondary
#B6A66B
accent
#BB50D8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334792

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

Preview Lab → · Contrast checker → · Palette generator →

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