#334286#334286

#334286 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.4% C 0.115 H 271.1°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#334286
RGBrgb(51, 66, 134)
HSLhsl(229, 45%, 36%)
HSVhsv(229, 62%, 53%)
CMYKcmyk(61.9%, 50.7%, 0%, 47.5%)
CIE-LABlab(30.21, 16.38, -40.07)
CIE-LCHlch(30.21, 43.29, 292.23°)
OKLaboklab(40.45% 0.0022 -0.1146)
OKLCHoklch(40.45% 0.115 271.1)
XYZxyz(7.6151, 6.3209, 23.3684)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334286 #867733
analogous
#336C86 #334286 #4E3386
triadic
#334286 #863342 #428633
tetradic
#334286 #86336C #867733 #33864E
square
#334286 #86336C #867733 #33864E
split-complementary
#334286 #864E33 #6C8633
monochromatic
#11162D #222C5A #334286 #4458B2 #6C7DC7

Accessibility & contrast

On white

9.27
#334286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#334286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334286
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334286#FFFFFF#000000##FFFFFF
##3342861.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4B88
Deuteranopia (green-blind)
#0F4485
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334286;
/* rgb */ color: rgb(51, 66, 134);
/* oklch */ color: oklch(40.4% 0.115 271.1);
Tailwind
colors: {
  custom: {
    50: '#7376aa',
    500: '#334286',
    950: '#000000',
  },
}
SCSS
$custom: #334286;
$custom-light: #7376aa;
$custom-dark: #000000;
JSON
{
  "hex": "#334286",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 134
  },
  "hsl": {
    "h": 229.157,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40446,
    "c": 0.11463,
    "h": 271.1
  },
  "luminance": 0.06321
}

Semantic roles & 50–950 ramp

primary
#334286
secondary
#AFA266
accent
#BD53D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334286

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

Preview Lab → · Contrast checker → · Palette generator →

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