#334292#334292

#334292 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.4% C 0.132 H 271.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#334292
RGBrgb(51, 66, 146)
HSLhsl(231, 48%, 39%)
HSVhsv(231, 65%, 57%)
CMYKcmyk(65.1%, 54.8%, 0%, 42.7%)
CIE-LABlab(31.05, 20.77, -46.10)
CIE-LCHlch(31.05, 50.56, 294.26°)
OKLaboklab(41.36% 0.0033 -0.1323)
OKLCHoklch(41.36% 0.132 271.4)
XYZxyz(8.5000, 6.6748, 28.0290)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334292 #928333
analogous
#337192 #334292 #533392
triadic
#334292 #923342 #429233
tetradic
#334292 #923371 #928333 #339253
square
#334292 #923371 #928333 #339253
split-complementary
#334292 #925333 #719233
monochromatic
#131937 #232D65 #334292 #4458BE #7280CE

Accessibility & contrast

On white

8.99
#334292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#334292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334292
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334292#FFFFFF#000000##FFFFFF
##3342921.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4D95
Deuteranopia (green-blind)
#004590
Tritanopia (blue-blind)
#005563
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334292;
/* rgb */ color: rgb(51, 66, 146);
/* oklch */ color: oklch(41.4% 0.132 271.4);
Tailwind
colors: {
  custom: {
    50: '#7576b3',
    500: '#334292',
    950: '#000000',
  },
}
SCSS
$custom: #334292;
$custom-light: #7576b3;
$custom-dark: #000000;
JSON
{
  "hex": "#334292",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 146
  },
  "hsl": {
    "h": 230.526,
    "s": 48.223,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41356,
    "c": 0.13238,
    "h": 271.4
  },
  "luminance": 0.06676
}

Semantic roles & 50–950 ramp

primary
#334292
secondary
#B6AA6B
accent
#C250D8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334292

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

Preview Lab → · Contrast checker → · Palette generator →

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