#334498#334498

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

Color values

HEX#334498
RGBrgb(51, 68, 152)
HSLhsl(230, 50%, 40%)
HSVhsv(230, 66%, 60%)
CMYKcmyk(66.4%, 55.3%, 0%, 40.4%)
CIE-LABlab(32.04, 21.64, -48.16)
CIE-LCHlch(32.04, 52.80, 294.19°)
OKLaboklab(42.24% 0.0018 -0.1384)
OKLCHoklch(42.24% 0.138 270.7)
XYZxyz(9.0979, 7.1042, 30.5915)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334498 #988733
analogous
#337798 #334498 #553398
triadic
#334498 #983344 #449833
tetradic
#334498 #983377 #988733 #339855
square
#334498 #983377 #988733 #339855
split-complementary
#334498 #985533 #779833
monochromatic
#141B3C #242F6A #334498 #475CC1 #7584D1

Accessibility & contrast

On white

8.67
#334498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#334498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334498
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334498#FFFFFF#000000##FFFFFF
##3344981.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05509B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334498;
/* rgb */ color: rgb(51, 68, 152);
/* oklch */ color: oklch(42.2% 0.138 270.7);
Tailwind
colors: {
  custom: {
    50: '#7677b7',
    500: '#334498',
    950: '#000000',
  },
}
SCSS
$custom: #334498;
$custom-light: #7677b7;
$custom-dark: #000000;
JSON
{
  "hex": "#334498",
  "rgb": {
    "r": 51,
    "g": 68,
    "b": 152
  },
  "hsl": {
    "h": 229.901,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42239,
    "c": 0.13838,
    "h": 270.7
  },
  "luminance": 0.07105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334498

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

Preview Lab → · Contrast checker → · Palette generator →

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