#334378#334378

#334378 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.7% C 0.092 H 269.3°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#334378
RGBrgb(51, 67, 120)
HSLhsl(226, 40%, 34%)
HSVhsv(226, 58%, 47%)
CMYKcmyk(57.5%, 44.2%, 0%, 52.9%)
CIE-LABlab(29.60, 10.63, -32.32)
CIE-LCHlch(29.60, 34.02, 288.21°)
OKLaboklab(39.69% -0.0012 -0.0918)
OKLCHoklch(39.69% 0.092 269.3)
XYZxyz(6.7614, 6.0737, 18.5817)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334378 #786833
analogous
#336578 #334378 #453378
triadic
#334378 #783343 #437833
tetradic
#334378 #783365 #786833 #337845
square
#334378 #783365 #786833 #337845
split-complementary
#334378 #784533 #657833
monochromatic
#0E1322 #212B4D #334378 #455BA3 #677BBE

Accessibility & contrast

On white

9.48
#334378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#334378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334378
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334378#FFFFFF#000000##FFFFFF
##3343781.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C497A
Deuteranopia (green-blind)
#244377
Tritanopia (blue-blind)
#0C4F57
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334378;
/* rgb */ color: rgb(51, 67, 120);
/* oklch */ color: oklch(39.7% 0.092 269.3);
Tailwind
colors: {
  custom: {
    50: '#70769f',
    500: '#334378',
    950: '#000000',
  },
}
SCSS
$custom: #334378;
$custom-light: #70769f;
$custom-dark: #000000;
JSON
{
  "hex": "#334378",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 120
  },
  "hsl": {
    "h": 226.087,
    "s": 40.351,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39689,
    "c": 0.09183,
    "h": 269.3
  },
  "luminance": 0.06074
}

Semantic roles & 50–950 ramp

primary
#334378
secondary
#A69660
accent
#B458D0
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #334378

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

Preview Lab → · Contrast checker → · Palette generator →

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