#334289#334289

#334289 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.7% C 0.119 H 271.2°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#334289
RGBrgb(51, 66, 137)
HSLhsl(230, 46%, 37%)
HSVhsv(230, 63%, 54%)
CMYKcmyk(62.8%, 51.8%, 0%, 46.3%)
CIE-LABlab(30.41, 17.48, -41.60)
CIE-LCHlch(30.41, 45.12, 292.79°)
OKLaboklab(40.67% 0.0025 -0.1191)
OKLCHoklch(40.67% 0.119 271.2)
XYZxyz(7.8273, 6.4057, 24.4860)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334289 #897A33
analogous
#336D89 #334289 #4F3389
triadic
#334289 #893342 #428933
tetradic
#334289 #89336D #897A33 #33894F
square
#334289 #89336D #897A33 #33894F
split-complementary
#334289 #894F33 #6D8933
monochromatic
#121730 #222D5C #334289 #4457B6 #6E7DC9

Accessibility & contrast

On white

9.21
#334289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334289
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334289#FFFFFF#000000##FFFFFF
##3342891.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4C8C
Deuteranopia (green-blind)
#074488
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334289;
/* rgb */ color: rgb(51, 66, 137);
/* oklch */ color: oklch(40.7% 0.119 271.2);
Tailwind
colors: {
  custom: {
    50: '#7376ac',
    500: '#334289',
    950: '#000000',
  },
}
SCSS
$custom: #334289;
$custom-light: #7376ac;
$custom-dark: #000000;
JSON
{
  "hex": "#334289",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 137
  },
  "hsl": {
    "h": 229.535,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40668,
    "c": 0.11913,
    "h": 271.2
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#334289
secondary
#B1A467
accent
#BF52D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334289

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

Preview Lab → · Contrast checker → · Palette generator →

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