#334685#334685

#334685 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.108 H 268.7°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#334685
RGBrgb(51, 70, 133)
HSLhsl(226, 45%, 36%)
HSVhsv(226, 62%, 52%)
CMYKcmyk(61.7%, 47.4%, 0%, 47.8%)
CIE-LABlab(31.29, 13.31, -37.71)
CIE-LCHlch(31.29, 40.00, 289.44°)
OKLaboklab(41.25% -0.0024 -0.1076)
OKLCHoklch(41.25% 0.108 268.7)
XYZxyz(7.7876, 6.7769, 23.0834)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334685 #857233
analogous
#336F85 #334685 #493385
triadic
#334685 #853346 #468533
tetradic
#334685 #85336F #857233 #338549
square
#334685 #85336F #857233 #338549
split-complementary
#334685 #854933 #6F8533
monochromatic
#11172D #222F59 #334685 #445DB1 #6C81C7

Accessibility & contrast

On white

8.91
#334685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#334685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334685
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334685#FFFFFF#000000##FFFFFF
##3346851.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E87
Deuteranopia (green-blind)
#1C4684
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334685;
/* rgb */ color: rgb(51, 70, 133);
/* oklch */ color: oklch(41.3% 0.108 268.7);
Tailwind
colors: {
  custom: {
    50: '#7379a9',
    500: '#334685',
    950: '#000000',
  },
}
SCSS
$custom: #334685;
$custom-light: #7379a9;
$custom-dark: #000000;
JSON
{
  "hex": "#334685",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 133
  },
  "hsl": {
    "h": 226.098,
    "s": 44.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41251,
    "c": 0.10765,
    "h": 268.7
  },
  "luminance": 0.06778
}

Semantic roles & 50–950 ramp

primary
#334685
secondary
#AE9E65
accent
#B654D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #334685

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

Preview Lab → · Contrast checker → · Palette generator →

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