#334388#334388

#334388 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.8% C 0.116 H 270.7°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#334388
RGBrgb(51, 67, 136)
HSLhsl(229, 45%, 37%)
HSVhsv(229, 63%, 53%)
CMYKcmyk(62.5%, 50.7%, 0%, 46.7%)
CIE-LABlab(30.63, 16.43, -40.64)
CIE-LCHlch(30.63, 43.83, 292.02°)
OKLaboklab(40.81% 0.0014 -0.1162)
OKLCHoklch(40.81% 0.116 270.7)
XYZxyz(7.8148, 6.4950, 24.1296)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334388 #887833
analogous
#336E88 #334388 #4E3388
triadic
#334388 #883343 #438833
tetradic
#334388 #88336E #887833 #33884E
square
#334388 #88336E #887833 #33884E
split-complementary
#334388 #884E33 #6E8833
monochromatic
#12172F #222D5B #334388 #4459B5 #6D7EC8

Accessibility & contrast

On white

9.13
#334388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#334388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334388
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334388#FFFFFF#000000##FFFFFF
##3343881.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4C8B
Deuteranopia (green-blind)
#0E4587
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334388;
/* rgb */ color: rgb(51, 67, 136);
/* oklch */ color: oklch(40.8% 0.116 270.7);
Tailwind
colors: {
  custom: {
    50: '#7376ab',
    500: '#334388',
    950: '#000000',
  },
}
SCSS
$custom: #334388;
$custom-light: #7376ab;
$custom-dark: #000000;
JSON
{
  "hex": "#334388",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 136
  },
  "hsl": {
    "h": 228.706,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40809,
    "c": 0.11626,
    "h": 270.7
  },
  "luminance": 0.06496
}

Semantic roles & 50–950 ramp

primary
#334388
secondary
#B0A267
accent
#BD53D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334388

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

Preview Lab → · Contrast checker → · Palette generator →

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