#334988#334988

#334988 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.1% C 0.108 H 267.2°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#334988
RGBrgb(51, 73, 136)
HSLhsl(224, 45%, 37%)
HSVhsv(224, 63%, 53%)
CMYKcmyk(62.5%, 46.3%, 0%, 46.7%)
CIE-LABlab(32.36, 12.40, -37.86)
CIE-LCHlch(32.36, 39.84, 288.13°)
OKLaboklab(42.13% -0.0053 -0.108)
OKLCHoklch(42.13% 0.108 267.2)
XYZxyz(8.1902, 7.2458, 24.2547)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334988 #887233
analogous
#337488 #334988 #483388
triadic
#334988 #883349 #498833
tetradic
#334988 #883374 #887233 #338848
square
#334988 #883374 #887233 #338848
split-complementary
#334988 #884833 #748833
monochromatic
#12192F #22315B #334988 #4461B5 #6D85C8

Accessibility & contrast

On white

8.57
#334988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#334988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334988
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334988#FFFFFF#000000##FFFFFF
##3349881.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C508A
Deuteranopia (green-blind)
#1F4987
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334988;
/* rgb */ color: rgb(51, 73, 136);
/* oklch */ color: oklch(42.1% 0.108 267.2);
Tailwind
colors: {
  custom: {
    50: '#737bab',
    500: '#334988',
    950: '#000000',
  },
}
SCSS
$custom: #334988;
$custom-light: #737bab;
$custom-dark: #000000;
JSON
{
  "hex": "#334988",
  "rgb": {
    "r": 51,
    "g": 73,
    "b": 136
  },
  "hsl": {
    "h": 224.471,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.42128,
    "c": 0.10814,
    "h": 267.2
  },
  "luminance": 0.07246
}

Semantic roles & 50–950 ramp

primary
#334988
secondary
#B09D67
accent
#B353D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334988

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

Preview Lab → · Contrast checker → · Palette generator →

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