#334579#334579

#334579 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.2% C 0.091 H 267.8°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#334579
RGBrgb(51, 69, 121)
HSLhsl(225, 41%, 34%)
HSVhsv(225, 58%, 47%)
CMYKcmyk(57.9%, 43%, 0%, 52.5%)
CIE-LABlab(30.25, 9.64, -31.90)
CIE-LCHlch(30.25, 33.33, 286.82°)
OKLaboklab(40.21% -0.0035 -0.0906)
OKLCHoklch(40.21% 0.091 267.8)
XYZxyz(6.9434, 6.3400, 18.9433)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334579 #796733
analogous
#336879 #334579 #443379
triadic
#334579 #793345 #457933
tetradic
#334579 #793368 #796733 #337944
square
#334579 #793368 #796733 #337944
split-complementary
#334579 #794433 #687933
monochromatic
#0F1423 #212C4E #334579 #455EA4 #677EBF

Accessibility & contrast

On white

9.26
#334579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334579
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334579#FFFFFF#000000##FFFFFF
##3345791.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4B7B
Deuteranopia (green-blind)
#264478
Tritanopia (blue-blind)
#095059
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334579;
/* rgb */ color: rgb(51, 69, 121);
/* oklch */ color: oklch(40.2% 0.091 267.8);
Tailwind
colors: {
  custom: {
    50: '#7078a0',
    500: '#334579',
    950: '#000000',
  },
}
SCSS
$custom: #334579;
$custom-light: #7078a0;
$custom-dark: #000000;
JSON
{
  "hex": "#334579",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 121
  },
  "hsl": {
    "h": 224.571,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40213,
    "c": 0.09065,
    "h": 267.8
  },
  "luminance": 0.06341
}

Semantic roles & 50–950 ramp

primary
#334579
secondary
#A79561
accent
#B157D1
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #334579

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

Preview Lab → · Contrast checker → · Palette generator →

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