#334580#334580

#334580 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.7% C 0.101 H 268.8°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#334580
RGBrgb(51, 69, 128)
HSLhsl(226, 43%, 35%)
HSVhsv(226, 60%, 50%)
CMYKcmyk(60.2%, 46.1%, 0%, 49.8%)
CIE-LABlab(30.68, 12.17, -35.59)
CIE-LCHlch(30.68, 37.61, 288.88°)
OKLaboklab(40.68% -0.0021 -0.1014)
OKLCHoklch(40.68% 0.101 268.8)
XYZxyz(7.3883, 6.5180, 21.2866)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334580 #806E33
analogous
#336C80 #334580 #473380
triadic
#334580 #803345 #458033
tetradic
#334580 #80336C #806E33 #338047
square
#334580 #80336C #806E33 #338047
split-complementary
#334580 #804733 #6C8033
monochromatic
#101628 #222D54 #334580 #445DAC #6A7FC4

Accessibility & contrast

On white

9.12
#334580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#334580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334580
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334580#FFFFFF#000000##FFFFFF
##3345801.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4C82
Deuteranopia (green-blind)
#20457F
Tritanopia (blue-blind)
#00525C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334580;
/* rgb */ color: rgb(51, 69, 128);
/* oklch */ color: oklch(40.7% 0.101 268.8);
Tailwind
colors: {
  custom: {
    50: '#7278a5',
    500: '#334580',
    950: '#000000',
  },
}
SCSS
$custom: #334580;
$custom-light: #7278a5;
$custom-dark: #000000;
JSON
{
  "hex": "#334580",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 128
  },
  "hsl": {
    "h": 225.974,
    "s": 43.017,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40682,
    "c": 0.10141,
    "h": 268.8
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

primary
#334580
secondary
#AB9B63
accent
#B555D3
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #334580

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

Preview Lab → · Contrast checker → · Palette generator →

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