#334789#334789

#334789 is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.8% C 0.112 H 268.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#334789
RGBrgb(51, 71, 137)
HSLhsl(226, 46%, 37%)
HSVhsv(226, 63%, 54%)
CMYKcmyk(62.8%, 48.2%, 0%, 46.3%)
CIE-LABlab(31.84, 14.11, -39.30)
CIE-LCHlch(31.84, 41.76, 289.74°)
OKLaboklab(41.75% -0.0029 -0.1123)
OKLCHoklch(41.75% 0.112 268.5)
XYZxyz(8.1323, 7.0157, 24.5877)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334789 #897533
analogous
#337289 #334789 #4A3389
triadic
#334789 #893347 #478933
tetradic
#334789 #893372 #897533 #33894A
square
#334789 #893372 #897533 #33894A
split-complementary
#334789 #894A33 #728933
monochromatic
#121930 #22305C #334789 #445EB6 #6E83C9

Accessibility & contrast

On white

8.74
#334789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#334789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334789
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334789#FFFFFF#000000##FFFFFF
##3347891.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274F8B
Deuteranopia (green-blind)
#184788
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334789;
/* rgb */ color: rgb(51, 71, 137);
/* oklch */ color: oklch(41.8% 0.112 268.5);
Tailwind
colors: {
  custom: {
    50: '#7379ac',
    500: '#334789',
    950: '#000000',
  },
}
SCSS
$custom: #334789;
$custom-light: #7379ac;
$custom-dark: #000000;
JSON
{
  "hex": "#334789",
  "rgb": {
    "r": 51,
    "g": 71,
    "b": 137
  },
  "hsl": {
    "h": 226.047,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41754,
    "c": 0.11232,
    "h": 268.5
  },
  "luminance": 0.07016
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334789

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

Preview Lab → · Contrast checker → · Palette generator →

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