#334386#334386

#334386 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.7% C 0.113 H 270.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#334386
RGBrgb(51, 67, 134)
HSLhsl(228, 45%, 36%)
HSVhsv(228, 62%, 53%)
CMYKcmyk(61.9%, 50%, 0%, 47.5%)
CIE-LABlab(30.49, 15.70, -39.62)
CIE-LCHlch(30.49, 42.61, 291.62°)
OKLaboklab(40.66% 0.0011 -0.1132)
OKLCHoklch(40.66% 0.113 270.6)
XYZxyz(7.6740, 6.4387, 23.3880)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334386 #867633
analogous
#336D86 #334386 #4D3386
triadic
#334386 #863343 #438633
tetradic
#334386 #86336D #867633 #33864D
square
#334386 #86336D #867633 #33864D
split-complementary
#334386 #864D33 #6D8633
monochromatic
#11172D #222D5A #334386 #4459B2 #6C7EC7

Accessibility & contrast

On white

9.18
#334386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#334386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334386
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334386#FFFFFF#000000##FFFFFF
##3343861.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214C88
Deuteranopia (green-blind)
#124485
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334386;
/* rgb */ color: rgb(51, 67, 134);
/* oklch */ color: oklch(40.7% 0.113 270.6);
Tailwind
colors: {
  custom: {
    50: '#7376aa',
    500: '#334386',
    950: '#000000',
  },
}
SCSS
$custom: #334386;
$custom-light: #7376aa;
$custom-dark: #000000;
JSON
{
  "hex": "#334386",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 134
  },
  "hsl": {
    "h": 228.434,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40663,
    "c": 0.11326,
    "h": 270.6
  },
  "luminance": 0.06439
}

Semantic roles & 50–950 ramp

primary
#334386
secondary
#AFA166
accent
#BC53D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334386

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

Preview Lab → · Contrast checker → · Palette generator →

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