#334689#334689

#334689 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.5% C 0.114 H 269.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#334689
RGBrgb(51, 70, 137)
HSLhsl(227, 46%, 37%)
HSVhsv(227, 63%, 54%)
CMYKcmyk(62.8%, 48.9%, 0%, 46.3%)
CIE-LABlab(31.55, 14.78, -39.77)
CIE-LCHlch(31.55, 42.42, 290.39°)
OKLaboklab(41.53% -0.0018 -0.1136)
OKLCHoklch(41.53% 0.114 269.1)
XYZxyz(8.0692, 6.8896, 24.5667)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334689 #897633
analogous
#337189 #334689 #4B3389
triadic
#334689 #893346 #468933
tetradic
#334689 #893371 #897633 #33894B
square
#334689 #893371 #897633 #33894B
split-complementary
#334689 #894B33 #718933
monochromatic
#121830 #222F5C #334689 #445DB6 #6E82C9

Accessibility & contrast

On white

8.83
#334689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#334689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334689
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334689#FFFFFF#000000##FFFFFF
##3346891.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254E8B
Deuteranopia (green-blind)
#164788
Tritanopia (blue-blind)
#005561
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334689;
/* rgb */ color: rgb(51, 70, 137);
/* oklch */ color: oklch(41.5% 0.114 269.1);
Tailwind
colors: {
  custom: {
    50: '#7379ac',
    500: '#334689',
    950: '#000000',
  },
}
SCSS
$custom: #334689;
$custom-light: #7379ac;
$custom-dark: #000000;
JSON
{
  "hex": "#334689",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 137
  },
  "hsl": {
    "h": 226.744,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41534,
    "c": 0.11366,
    "h": 269.1
  },
  "luminance": 0.0689
}

Semantic roles & 50–950 ramp

primary
#334689
secondary
#B1A067
accent
#B852D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334689

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

Preview Lab → · Contrast checker → · Palette generator →

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