#334875#334875

#334875 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.080 H 264.2°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#334875
RGBrgb(51, 72, 117)
HSLhsl(221, 39%, 33%)
HSVhsv(221, 56%, 46%)
CMYKcmyk(56.4%, 38.5%, 0%, 54.1%)
CIE-LABlab(30.93, 6.21, -28.32)
CIE-LCHlch(30.93, 28.99, 282.37°)
OKLaboklab(40.66% -0.0082 -0.0801)
OKLCHoklch(40.66% 0.08 264.2)
XYZxyz(6.8924, 6.6224, 17.7412)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334875 #756033
analogous
#336975 #334875 #3F3375
triadic
#334875 #753348 #487533
tetradic
#334875 #753369 #756033 #33753F
square
#334875 #753369 #756033 #33753F
split-complementary
#334875 #753F33 #697533
monochromatic
#0E1420 #202E4A #334875 #4662A0 #6682BC

Accessibility & contrast

On white

9.03
#334875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#334875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334875
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334875#FFFFFF#000000##FFFFFF
##3348751.009.032.329.03
#FFFFFF9.031.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364C77
Deuteranopia (green-blind)
#2E4674
Tritanopia (blue-blind)
#0F5259
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334875;
/* rgb */ color: rgb(51, 72, 117);
/* oklch */ color: oklch(40.7% 0.080 264.2);
Tailwind
colors: {
  custom: {
    50: '#707a9d',
    500: '#334875',
    950: '#000000',
  },
}
SCSS
$custom: #334875;
$custom-light: #707a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#334875",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 117
  },
  "hsl": {
    "h": 220.909,
    "s": 39.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40661,
    "c": 0.08049,
    "h": 264.2
  },
  "luminance": 0.06623
}

Semantic roles & 50–950 ramp

primary
#334875
secondary
#A48E5F
accent
#A959CF
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #334875

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

Preview Lab → · Contrast checker → · Palette generator →

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