#334382#334382

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

Color values

HEX#334382
RGBrgb(51, 67, 130)
HSLhsl(228, 44%, 35%)
HSVhsv(228, 61%, 51%)
CMYKcmyk(60.8%, 48.5%, 0%, 49%)
CIE-LABlab(30.23, 14.24, -37.56)
CIE-LCHlch(30.23, 40.17, 290.77°)
OKLaboklab(40.38% 0.0005 -0.1072)
OKLCHoklch(40.38% 0.107 270.3)
XYZxyz(7.4003, 6.3292, 21.9465)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334382 #827233
analogous
#336A82 #334382 #4A3382
triadic
#334382 #823343 #438233
tetradic
#334382 #82336A #827233 #33824A
square
#334382 #82336A #827233 #33824A
split-complementary
#334382 #824A33 #6A8233
monochromatic
#11162A #222C56 #334382 #445AAE #6B7DC5

Accessibility & contrast

On white

9.27
#334382 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#334382 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334382
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334382#FFFFFF#000000##FFFFFF
##3343821.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254B84
Deuteranopia (green-blind)
#194481
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334382;
/* rgb */ color: rgb(51, 67, 130);
/* oklch */ color: oklch(40.4% 0.107 270.3);
Tailwind
colors: {
  custom: {
    50: '#7276a7',
    500: '#334382',
    950: '#000000',
  },
}
SCSS
$custom: #334382;
$custom-light: #7276a7;
$custom-dark: #000000;
JSON
{
  "hex": "#334382",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 130
  },
  "hsl": {
    "h": 227.848,
    "s": 43.646,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40376,
    "c": 0.10721,
    "h": 270.3
  },
  "luminance": 0.0633
}

Semantic roles & 50–950 ramp

primary
#334382
secondary
#AD9E64
accent
#BA54D3
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #334382

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

Preview Lab → · Contrast checker → · Palette generator →

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