#334487#334487

#334487 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 41.0% C 0.113 H 270.1°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#334487
RGBrgb(51, 68, 135)
HSLhsl(228, 45%, 36%)
HSVhsv(228, 62%, 53%)
CMYKcmyk(62.2%, 49.6%, 0%, 47.1%)
CIE-LABlab(30.85, 15.39, -39.67)
CIE-LCHlch(30.85, 42.55, 291.21°)
OKLaboklab(40.95% 0.0001 -0.1134)
OKLCHoklch(40.95% 0.113 270.1)
XYZxyz(7.8041, 6.5867, 23.7771)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334487 #877633
analogous
#336E87 #334487 #4C3387
triadic
#334487 #873344 #448733
tetradic
#334487 #87336E #877633 #33874C
square
#334487 #87336E #877633 #33874C
split-complementary
#334487 #874C33 #6E8733
monochromatic
#11172E #222E5B #334487 #445AB3 #6D7FC8

Accessibility & contrast

On white

9.06
#334487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#334487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334487
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334487#FFFFFF#000000##FFFFFF
##3344871.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224D89
Deuteranopia (green-blind)
#134586
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334487;
/* rgb */ color: rgb(51, 68, 135);
/* oklch */ color: oklch(41.0% 0.113 270.1);
Tailwind
colors: {
  custom: {
    50: '#7377aa',
    500: '#334487',
    950: '#000000',
  },
}
SCSS
$custom: #334487;
$custom-light: #7377aa;
$custom-dark: #000000;
JSON
{
  "hex": "#334487",
  "rgb": {
    "r": 51,
    "g": 68,
    "b": 135
  },
  "hsl": {
    "h": 227.857,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40953,
    "c": 0.11339,
    "h": 270.1
  },
  "luminance": 0.06587
}

Semantic roles & 50–950 ramp

primary
#334487
secondary
#B0A166
accent
#BB53D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334487

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

Preview Lab → · Contrast checker → · Palette generator →

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