#334288#334288

#334288 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.6% C 0.118 H 271.2°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#334288
RGBrgb(51, 66, 136)
HSLhsl(229, 45%, 37%)
HSVhsv(229, 63%, 53%)
CMYKcmyk(62.5%, 51.5%, 0%, 46.7%)
CIE-LABlab(30.34, 17.11, -41.09)
CIE-LCHlch(30.34, 44.51, 292.60°)
OKLaboklab(40.59% 0.0024 -0.1176)
OKLCHoklch(40.59% 0.118 271.2)
XYZxyz(7.7559, 6.3772, 24.1100)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334288 #887933
analogous
#336D88 #334288 #4F3388
triadic
#334288 #883342 #428833
tetradic
#334288 #88336D #887933 #33884F
square
#334288 #88336D #887933 #33884F
split-complementary
#334288 #884F33 #6D8833
monochromatic
#12172F #222C5B #334288 #4458B5 #6D7DC8

Accessibility & contrast

On white

9.23
#334288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#334288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334288
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334288#FFFFFF#000000##FFFFFF
##3342881.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4B8B
Deuteranopia (green-blind)
#0A4487
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334288;
/* rgb */ color: rgb(51, 66, 136);
/* oklch */ color: oklch(40.6% 0.118 271.2);
Tailwind
colors: {
  custom: {
    50: '#7376ab',
    500: '#334288',
    950: '#000000',
  },
}
SCSS
$custom: #334288;
$custom-light: #7376ab;
$custom-dark: #000000;
JSON
{
  "hex": "#334288",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 136
  },
  "hsl": {
    "h": 229.412,
    "s": 45.455,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40593,
    "c": 0.11764,
    "h": 271.2
  },
  "luminance": 0.06378
}

Semantic roles & 50–950 ramp

primary
#334288
secondary
#B0A367
accent
#BE53D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334288

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

Preview Lab → · Contrast checker → · Palette generator →

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