#334188#334188

#334188 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.4% C 0.119 H 271.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#334188
RGBrgb(51, 65, 136)
HSLhsl(230, 45%, 37%)
HSVhsv(230, 63%, 53%)
CMYKcmyk(62.5%, 52.2%, 0%, 46.7%)
CIE-LABlab(30.06, 17.79, -41.55)
CIE-LCHlch(30.06, 45.19, 293.17°)
OKLaboklab(40.38% 0.0035 -0.119)
OKLCHoklch(40.38% 0.119 271.7)
XYZxyz(7.6980, 6.2613, 24.0907)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334188 #887A33
analogous
#336C88 #334188 #503388
triadic
#334188 #883341 #418833
tetradic
#334188 #88336C #887A33 #338850
square
#334188 #88336C #887A33 #338850
split-complementary
#334188 #885033 #6C8833
monochromatic
#12162F #222C5B #334188 #4456B5 #6D7CC8

Accessibility & contrast

On white

9.32
#334188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#334188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334188
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334188#FFFFFF#000000##FFFFFF
##3341881.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4B8B
Deuteranopia (green-blind)
#054387
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334188;
/* rgb */ color: rgb(51, 65, 136);
/* oklch */ color: oklch(40.4% 0.119 271.7);
Tailwind
colors: {
  custom: {
    50: '#7375ab',
    500: '#334188',
    950: '#000000',
  },
}
SCSS
$custom: #334188;
$custom-light: #7375ab;
$custom-dark: #000000;
JSON
{
  "hex": "#334188",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 136
  },
  "hsl": {
    "h": 230.118,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4038,
    "c": 0.11901,
    "h": 271.7
  },
  "luminance": 0.06262
}

Semantic roles & 50–950 ramp

primary
#334188
secondary
#B0A467
accent
#C053D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334188

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

Preview Lab → · Contrast checker → · Palette generator →

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