#334176#334176

#334176 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.1% C 0.091 H 270.6°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#334176
RGBrgb(51, 65, 118)
HSLhsl(227, 40%, 33%)
HSVhsv(227, 57%, 46%)
CMYKcmyk(56.8%, 44.9%, 0%, 53.7%)
CIE-LABlab(28.88, 11.27, -32.20)
CIE-LCHlch(28.88, 34.12, 289.29°)
OKLaboklab(39.1% 0.0009 -0.0915)
OKLCHoklch(39.1% 0.092 270.6)
XYZxyz(6.5245, 5.7919, 17.9102)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334176 #766833
analogous
#336276 #334176 #463376
triadic
#334176 #763341 #417633
tetradic
#334176 #763362 #766833 #337646
square
#334176 #763362 #766833 #337646
split-complementary
#334176 #764633 #627633
monochromatic
#0E1221 #21294B #334176 #4559A1 #6678BD

Accessibility & contrast

On white

9.73
#334176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#334176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334176
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334176#FFFFFF#000000##FFFFFF
##3341761.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4778
Deuteranopia (green-blind)
#224175
Tritanopia (blue-blind)
#104D55
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #334176;
/* rgb */ color: rgb(51, 65, 118);
/* oklch */ color: oklch(39.1% 0.091 270.6);
Tailwind
colors: {
  custom: {
    50: '#70759e',
    500: '#334176',
    950: '#000000',
  },
}
SCSS
$custom: #334176;
$custom-light: #70759e;
$custom-dark: #000000;
JSON
{
  "hex": "#334176",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 118
  },
  "hsl": {
    "h": 227.463,
    "s": 39.645,
    "l": 33.137
  },
  "oklch": {
    "l": 0.391,
    "c": 0.0915,
    "h": 270.6
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

primary
#334176
secondary
#A59760
accent
#B758D0
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #334176

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

Preview Lab → · Contrast checker → · Palette generator →

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