#334271#334271

#334271 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.0% C 0.082 H 269.0°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#334271
RGBrgb(51, 66, 113)
HSLhsl(225, 38%, 32%)
HSVhsv(225, 55%, 44%)
CMYKcmyk(54.9%, 41.6%, 0%, 55.7%)
CIE-LABlab(28.88, 8.82, -29.04)
CIE-LCHlch(28.88, 30.35, 286.89°)
OKLaboklab(39% -0.0014 -0.0822)
OKLCHoklch(39% 0.082 269)
XYZxyz(6.2931, 5.7921, 16.4059)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334271 #716233
analogous
#336171 #334271 #433371
triadic
#334271 #713342 #427133
tetradic
#334271 #713361 #716233 #337143
square
#334271 #713361 #716233 #337143
split-complementary
#334271 #714333 #617133
monochromatic
#0D111D #202947 #334271 #465B9B #6579B9

Accessibility & contrast

On white

9.73
#334271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#334271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334271
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334271#FFFFFF#000000##FFFFFF
##3342711.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4773
Deuteranopia (green-blind)
#284270
Tritanopia (blue-blind)
#164C54
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #334271;
/* rgb */ color: rgb(51, 66, 113);
/* oklch */ color: oklch(39.0% 0.082 269.0);
Tailwind
colors: {
  custom: {
    50: '#6f769a',
    500: '#334271',
    950: '#000000',
  },
}
SCSS
$custom: #334271;
$custom-light: #6f769a;
$custom-dark: #000000;
JSON
{
  "hex": "#334271",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 225.484,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39003,
    "c": 0.08225,
    "h": 269
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

primary
#334271
secondary
#A2915E
accent
#B25ACE
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #334271

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

Preview Lab → · Contrast checker → · Palette generator →

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