#334387#334387

#334387 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.7% C 0.115 H 270.6°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#334387
RGBrgb(51, 67, 135)
HSLhsl(229, 45%, 36%)
HSVhsv(229, 62%, 53%)
CMYKcmyk(62.2%, 50.4%, 0%, 47.1%)
CIE-LABlab(30.56, 16.07, -40.13)
CIE-LCHlch(30.56, 43.22, 291.82°)
OKLaboklab(40.74% 0.0012 -0.1147)
OKLCHoklch(40.74% 0.115 270.6)
XYZxyz(7.7441, 6.4668, 23.7571)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334387 #877733
analogous
#336D87 #334387 #4D3387
triadic
#334387 #873343 #438733
tetradic
#334387 #87336D #877733 #33874D
square
#334387 #87336D #877733 #33874D
split-complementary
#334387 #874D33 #6D8733
monochromatic
#11172E #222D5B #334387 #4459B3 #6D7EC8

Accessibility & contrast

On white

9.16
#334387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#334387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334387
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334387#FFFFFF#000000##FFFFFF
##3343871.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204C89
Deuteranopia (green-blind)
#104486
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334387;
/* rgb */ color: rgb(51, 67, 135);
/* oklch */ color: oklch(40.7% 0.115 270.6);
Tailwind
colors: {
  custom: {
    50: '#7376aa',
    500: '#334387',
    950: '#000000',
  },
}
SCSS
$custom: #334387;
$custom-light: #7376aa;
$custom-dark: #000000;
JSON
{
  "hex": "#334387",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 135
  },
  "hsl": {
    "h": 228.571,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40735,
    "c": 0.11476,
    "h": 270.6
  },
  "luminance": 0.06467
}

Semantic roles & 50–950 ramp

primary
#334387
secondary
#B0A266
accent
#BC53D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334387

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

Preview Lab → · Contrast checker → · Palette generator →

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