#334497#334497

#334497 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.2% C 0.137 H 270.7°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#334497
RGBrgb(51, 68, 151)
HSLhsl(230, 50%, 40%)
HSVhsv(230, 66%, 59%)
CMYKcmyk(66.2%, 55%, 0%, 40.8%)
CIE-LABlab(31.97, 21.27, -47.67)
CIE-LCHlch(31.97, 52.20, 294.05°)
OKLaboklab(42.16% 0.0017 -0.1369)
OKLCHoklch(42.16% 0.137 270.7)
XYZxyz(9.0164, 7.0716, 30.1620)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334497 #978633
analogous
#337697 #334497 #543397
triadic
#334497 #973344 #449733
tetradic
#334497 #973376 #978633 #339754
square
#334497 #973376 #978633 #339754
split-complementary
#334497 #975433 #769733
monochromatic
#141B3C #242F69 #334497 #475BC1 #7484D0

Accessibility & contrast

On white

8.70
#334497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#334497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334497
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334497#FFFFFF#000000##FFFFFF
##3344971.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08509A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005866
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334497;
/* rgb */ color: rgb(51, 68, 151);
/* oklch */ color: oklch(42.2% 0.137 270.7);
Tailwind
colors: {
  custom: {
    50: '#7677b6',
    500: '#334497',
    950: '#000000',
  },
}
SCSS
$custom: #334497;
$custom-light: #7677b6;
$custom-dark: #000000;
JSON
{
  "hex": "#334497",
  "rgb": {
    "r": 51,
    "g": 68,
    "b": 151
  },
  "hsl": {
    "h": 229.8,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4216,
    "c": 0.13694,
    "h": 270.7
  },
  "luminance": 0.07072
}

Semantic roles & 50–950 ramp

primary
#334497
secondary
#B8AC6D
accent
#C24FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334497

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

Preview Lab → · Contrast checker → · Palette generator →

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