#334178#334178

#334178 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.095 H 270.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#334178
RGBrgb(51, 65, 120)
HSLhsl(228, 40%, 34%)
HSVhsv(228, 58%, 47%)
CMYKcmyk(57.5%, 45.8%, 0%, 52.9%)
CIE-LABlab(29.01, 11.99, -33.26)
CIE-LCHlch(29.01, 35.36, 289.82°)
OKLaboklab(39.24% 0.0013 -0.0946)
OKLCHoklch(39.24% 0.095 270.8)
XYZxyz(6.6446, 5.8400, 18.5427)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334178 #786A33
analogous
#336378 #334178 #473378
triadic
#334178 #783341 #417833
tetradic
#334178 #783363 #786A33 #337847
square
#334178 #783363 #786A33 #337847
split-complementary
#334178 #784733 #637833
monochromatic
#0E1222 #212A4D #334178 #4558A3 #6779BE

Accessibility & contrast

On white

9.69
#334178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#334178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334178
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334178#FFFFFF#000000##FFFFFF
##3341781.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29487A
Deuteranopia (green-blind)
#214277
Tritanopia (blue-blind)
#0D4D56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #334178;
/* rgb */ color: rgb(51, 65, 120);
/* oklch */ color: oklch(39.2% 0.095 270.8);
Tailwind
colors: {
  custom: {
    50: '#70759f',
    500: '#334178',
    950: '#000000',
  },
}
SCSS
$custom: #334178;
$custom-light: #70759f;
$custom-dark: #000000;
JSON
{
  "hex": "#334178",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 227.826,
    "s": 40.351,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39235,
    "c": 0.09462,
    "h": 270.8
  },
  "luminance": 0.0584
}

Semantic roles & 50–950 ramp

primary
#334178
secondary
#A69860
accent
#B858D0
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #334178

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

Preview Lab → · Contrast checker → · Palette generator →

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