#334987#334987

#334987 is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.1% C 0.107 H 267.1°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#334987
RGBrgb(51, 73, 135)
HSLhsl(224, 45%, 36%)
HSVhsv(224, 62%, 53%)
CMYKcmyk(62.2%, 45.9%, 0%, 47.1%)
CIE-LABlab(32.30, 12.03, -37.34)
CIE-LCHlch(32.30, 39.23, 287.86°)
OKLaboklab(42.06% -0.0054 -0.1065)
OKLCHoklch(42.06% 0.107 267.1)
XYZxyz(8.1195, 7.2175, 23.8822)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334987 #877133
analogous
#337387 #334987 #473387
triadic
#334987 #873349 #498733
tetradic
#334987 #873373 #877133 #338747
square
#334987 #873373 #877133 #338747
split-complementary
#334987 #874733 #738733
monochromatic
#11192E #22315B #334987 #4461B3 #6D85C8

Accessibility & contrast

On white

8.59
#334987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#334987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334987
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334987#FFFFFF#000000##FFFFFF
##3349871.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5089
Deuteranopia (green-blind)
#204886
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #334987;
/* rgb */ color: rgb(51, 73, 135);
/* oklch */ color: oklch(42.1% 0.107 267.1);
Tailwind
colors: {
  custom: {
    50: '#737baa',
    500: '#334987',
    950: '#000000',
  },
}
SCSS
$custom: #334987;
$custom-light: #737baa;
$custom-dark: #000000;
JSON
{
  "hex": "#334987",
  "rgb": {
    "r": 51,
    "g": 73,
    "b": 135
  },
  "hsl": {
    "h": 224.286,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4206,
    "c": 0.10664,
    "h": 267.1
  },
  "luminance": 0.07218
}

Semantic roles & 50–950 ramp

primary
#334987
secondary
#B09C66
accent
#B353D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334987

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

Preview Lab → · Contrast checker → · Palette generator →

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