#334C87#334C87

#334C87 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.7% C 0.103 H 265.1°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#334C87
RGBrgb(51, 76, 135)
HSLhsl(222, 45%, 36%)
HSVhsv(222, 62%, 53%)
CMYKcmyk(62.2%, 43.7%, 0%, 47.1%)
CIE-LABlab(33.18, 10.03, -35.93)
CIE-LCHlch(33.18, 37.31, 285.60°)
OKLaboklab(42.74% -0.0088 -0.1023)
OKLCHoklch(42.74% 0.103 265.1)
XYZxyz(8.3214, 7.6212, 23.9495)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334C87 #876E33
analogous
#337687 #334C87 #443387
triadic
#334C87 #87334C #4C8733
tetradic
#334C87 #873376 #876E33 #338744
square
#334C87 #873376 #876E33 #338744
split-complementary
#334C87 #874433 #768733
monochromatic
#111A2E #22335B #334C87 #4465B3 #6D88C8

Accessibility & contrast

On white

8.32
#334C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#334C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334C87
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334C87#FFFFFF#000000##FFFFFF
##334C871.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325289
Deuteranopia (green-blind)
#264A86
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334c87;
/* rgb */ color: rgb(51, 76, 135);
/* oklch */ color: oklch(42.7% 0.103 265.1);
Tailwind
colors: {
  custom: {
    50: '#737daa',
    500: '#334c87',
    950: '#000000',
  },
}
SCSS
$custom: #334c87;
$custom-light: #737daa;
$custom-dark: #000000;
JSON
{
  "hex": "#334c87",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 135
  },
  "hsl": {
    "h": 222.143,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42739,
    "c": 0.10269,
    "h": 265.1
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#334C87
secondary
#B09A66
accent
#AE53D5
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #334C87

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

Preview Lab → · Contrast checker → · Palette generator →

#334C87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva