#334287#334287

#334287 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.5% C 0.116 H 271.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#334287
RGBrgb(51, 66, 135)
HSLhsl(229, 45%, 36%)
HSVhsv(229, 62%, 53%)
CMYKcmyk(62.2%, 51.1%, 0%, 47.1%)
CIE-LABlab(30.28, 16.74, -40.58)
CIE-LCHlch(30.28, 43.90, 292.42°)
OKLaboklab(40.52% 0.0023 -0.1161)
OKLCHoklch(40.52% 0.116 271.1)
XYZxyz(7.6852, 6.3489, 23.7374)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334287 #877833
analogous
#336C87 #334287 #4E3387
triadic
#334287 #873342 #428733
tetradic
#334287 #87336C #877833 #33874E
square
#334287 #87336C #877833 #33874E
split-complementary
#334287 #874E33 #6C8733
monochromatic
#11172E #222C5B #334287 #4458B3 #6D7DC8

Accessibility & contrast

On white

9.25
#334287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#334287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334287
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334287#FFFFFF#000000##FFFFFF
##3342871.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4B89
Deuteranopia (green-blind)
#0C4486
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334287;
/* rgb */ color: rgb(51, 66, 135);
/* oklch */ color: oklch(40.5% 0.116 271.1);
Tailwind
colors: {
  custom: {
    50: '#7376aa',
    500: '#334287',
    950: '#000000',
  },
}
SCSS
$custom: #334287;
$custom-light: #7376aa;
$custom-dark: #000000;
JSON
{
  "hex": "#334287",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 135
  },
  "hsl": {
    "h": 229.286,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40519,
    "c": 0.11613,
    "h": 271.1
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#334287
secondary
#B0A266
accent
#BE53D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334287

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

Preview Lab → · Contrast checker → · Palette generator →

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