#334086#334086

#334086 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 40.0% C 0.117 H 272.1°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#334086
RGBrgb(51, 64, 134)
HSLhsl(231, 45%, 36%)
HSVhsv(231, 62%, 53%)
CMYKcmyk(61.9%, 52.2%, 0%, 47.5%)
CIE-LABlab(29.64, 17.73, -40.99)
CIE-LCHlch(29.64, 44.66, 293.39°)
OKLaboklab(40.02% 0.0044 -0.1173)
OKLCHoklch(40.02% 0.117 272.1)
XYZxyz(7.5003, 6.0912, 23.3301)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334086 #867933
analogous
#336A86 #334086 #503386
triadic
#334086 #863340 #408633
tetradic
#334086 #86336A #867933 #338650
square
#334086 #86336A #867933 #338650
split-complementary
#334086 #865033 #6A8633
monochromatic
#11162D #222B5A #334086 #4455B2 #6C7AC7

Accessibility & contrast

On white

9.47
#334086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334086
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334086#FFFFFF#000000##FFFFFF
##3340861.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A89
Deuteranopia (green-blind)
#064285
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #334086;
/* rgb */ color: rgb(51, 64, 134);
/* oklch */ color: oklch(40.0% 0.117 272.1);
Tailwind
colors: {
  custom: {
    50: '#7374aa',
    500: '#334086',
    950: '#000000',
  },
}
SCSS
$custom: #334086;
$custom-light: #7374aa;
$custom-dark: #000000;
JSON
{
  "hex": "#334086",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 134
  },
  "hsl": {
    "h": 230.602,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40017,
    "c": 0.1174,
    "h": 272.1
  },
  "luminance": 0.06092
}

Semantic roles & 50–950 ramp

primary
#334086
secondary
#AFA466
accent
#C053D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334086

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

Preview Lab → · Contrast checker → · Palette generator →

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