#334091#334091

#334091 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.134 H 272.2°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#334091
RGBrgb(51, 64, 145)
HSLhsl(232, 48%, 38%)
HSVhsv(232, 65%, 57%)
CMYKcmyk(64.8%, 55.9%, 0%, 43.1%)
CIE-LABlab(30.43, 21.75, -46.49)
CIE-LCHlch(30.43, 51.33, 295.07°)
OKLaboklab(40.87% 0.0052 -0.1335)
OKLCHoklch(40.87% 0.134 272.2)
XYZxyz(8.3078, 6.4142, 27.5828)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334091 #918433
analogous
#336F91 #334091 #553391
triadic
#334091 #913340 #409133
tetradic
#334091 #91336F #918433 #339155
square
#334091 #91336F #918433 #339155
split-complementary
#334091 #915533 #6F9133
monochromatic
#131836 #232C64 #334091 #4455BD #717ECD

Accessibility & contrast

On white

9.20
#334091 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#334091 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334091
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334091#FFFFFF#000000##FFFFFF
##3340911.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034C94
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#005362
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334091;
/* rgb */ color: rgb(51, 64, 145);
/* oklch */ color: oklch(40.9% 0.134 272.2);
Tailwind
colors: {
  custom: {
    50: '#7574b2',
    500: '#334091',
    950: '#000000',
  },
}
SCSS
$custom: #334091;
$custom-light: #7574b2;
$custom-dark: #000000;
JSON
{
  "hex": "#334091",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 145
  },
  "hsl": {
    "h": 231.702,
    "s": 47.959,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40867,
    "c": 0.13361,
    "h": 272.2
  },
  "luminance": 0.06415
}

Semantic roles & 50–950 ramp

primary
#334091
secondary
#B5AB6B
accent
#C550D8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334091

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

Preview Lab → · Contrast checker → · Palette generator →

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