#334589#334589

#334589 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.115 H 269.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#334589
RGBrgb(51, 69, 137)
HSLhsl(227, 46%, 37%)
HSVhsv(227, 63%, 54%)
CMYKcmyk(62.8%, 49.6%, 0%, 46.3%)
CIE-LABlab(31.27, 15.45, -40.23)
CIE-LCHlch(31.27, 43.09, 291.01°)
OKLaboklab(41.32% -0.0007 -0.115)
OKLCHoklch(41.32% 0.115 269.7)
XYZxyz(8.0072, 6.7655, 24.5460)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334589 #897733
analogous
#337089 #334589 #4C3389
triadic
#334589 #893345 #458933
tetradic
#334589 #893370 #897733 #33894C
square
#334589 #893370 #897733 #33894C
split-complementary
#334589 #894C33 #708933
monochromatic
#121830 #222F5C #334589 #445BB6 #6E81C9

Accessibility & contrast

On white

8.92
#334589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#334589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334589
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334589#FFFFFF#000000##FFFFFF
##3345891.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234E8B
Deuteranopia (green-blind)
#134688
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334589;
/* rgb */ color: rgb(51, 69, 137);
/* oklch */ color: oklch(41.3% 0.115 269.7);
Tailwind
colors: {
  custom: {
    50: '#7378ac',
    500: '#334589',
    950: '#000000',
  },
}
SCSS
$custom: #334589;
$custom-light: #7378ac;
$custom-dark: #000000;
JSON
{
  "hex": "#334589",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 137
  },
  "hsl": {
    "h": 227.442,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41315,
    "c": 0.11502,
    "h": 269.7
  },
  "luminance": 0.06766
}

Semantic roles & 50–950 ramp

primary
#334589
secondary
#B1A167
accent
#BA52D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334589

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

Preview Lab → · Contrast checker → · Palette generator →

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