#334282#334282

#334282 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.2% C 0.109 H 270.9°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#334282
RGBrgb(51, 66, 130)
HSLhsl(229, 44%, 35%)
HSVhsv(229, 61%, 51%)
CMYKcmyk(60.8%, 49.2%, 0%, 49%)
CIE-LABlab(29.94, 14.92, -38.02)
CIE-LCHlch(29.94, 40.85, 291.43°)
OKLaboklab(40.16% 0.0017 -0.1086)
OKLCHoklch(40.16% 0.109 270.9)
XYZxyz(7.3414, 6.2114, 21.9268)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334282 #827333
analogous
#336982 #334282 #4C3382
triadic
#334282 #823342 #428233
tetradic
#334282 #823369 #827333 #33824C
square
#334282 #823369 #827333 #33824C
split-complementary
#334282 #824C33 #698233
monochromatic
#11152A #222C56 #334282 #4458AE #6B7CC5

Accessibility & contrast

On white

9.36
#334282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#334282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334282
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334282#FFFFFF#000000##FFFFFF
##3342821.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234A84
Deuteranopia (green-blind)
#164381
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334282;
/* rgb */ color: rgb(51, 66, 130);
/* oklch */ color: oklch(40.2% 0.109 270.9);
Tailwind
colors: {
  custom: {
    50: '#7276a7',
    500: '#334282',
    950: '#000000',
  },
}
SCSS
$custom: #334282;
$custom-light: #7276a7;
$custom-dark: #000000;
JSON
{
  "hex": "#334282",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 130
  },
  "hsl": {
    "h": 228.608,
    "s": 43.646,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40156,
    "c": 0.10859,
    "h": 270.9
  },
  "luminance": 0.06212
}

Semantic roles & 50–950 ramp

primary
#334282
secondary
#AD9F64
accent
#BB54D3
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #334282

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

Preview Lab → · Contrast checker → · Palette generator →

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