#334087#334087

#334087 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 40.1% C 0.119 H 272.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#334087
RGBrgb(51, 64, 135)
HSLhsl(231, 45%, 36%)
HSVhsv(231, 62%, 53%)
CMYKcmyk(62.2%, 52.6%, 0%, 47.1%)
CIE-LABlab(29.71, 18.10, -41.49)
CIE-LCHlch(29.71, 45.27, 293.56°)
OKLaboklab(40.09% 0.0045 -0.1188)
OKLCHoklch(40.09% 0.119 272.2)
XYZxyz(7.5704, 6.1193, 23.6992)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334087 #877A33
analogous
#336A87 #334087 #503387
triadic
#334087 #873340 #408733
tetradic
#334087 #87336A #877A33 #338750
square
#334087 #87336A #877A33 #338750
split-complementary
#334087 #875033 #6A8733
monochromatic
#11162E #222B5B #334087 #4455B3 #6D7BC8

Accessibility & contrast

On white

9.44
#334087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#334087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334087
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334087#FFFFFF#000000##FFFFFF
##3340871.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184A8A
Deuteranopia (green-blind)
#034286
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334087;
/* rgb */ color: rgb(51, 64, 135);
/* oklch */ color: oklch(40.1% 0.119 272.2);
Tailwind
colors: {
  custom: {
    50: '#7374aa',
    500: '#334087',
    950: '#000000',
  },
}
SCSS
$custom: #334087;
$custom-light: #7374aa;
$custom-dark: #000000;
JSON
{
  "hex": "#334087",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 135
  },
  "hsl": {
    "h": 230.714,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40092,
    "c": 0.11889,
    "h": 272.2
  },
  "luminance": 0.0612
}

Semantic roles & 50–950 ramp

primary
#334087
secondary
#B0A466
accent
#C153D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334087

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

Preview Lab → · Contrast checker → · Palette generator →

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