#334690#334690

#334690 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.124 H 269.6°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#334690
RGBrgb(51, 70, 144)
HSLhsl(228, 48%, 38%)
HSVhsv(228, 65%, 56%)
CMYKcmyk(64.6%, 51.4%, 0%, 43.5%)
CIE-LABlab(32.03, 17.35, -43.31)
CIE-LCHlch(32.03, 46.65, 291.83°)
OKLaboklab(42.05% -0.0009 -0.1241)
OKLCHoklch(42.05% 0.124 269.6)
XYZxyz(8.5877, 7.0970, 27.2974)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334690 #907D33
analogous
#337490 #334690 #4E3390
triadic
#334690 #903346 #469033
tetradic
#334690 #903374 #907D33 #33904E
square
#334690 #903374 #907D33 #33904E
split-complementary
#334690 #904E33 #749033
monochromatic
#131A36 #233063 #334690 #445CBD #7184CD

Accessibility & contrast

On white

8.68
#334690 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#334690 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334690
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334690#FFFFFF#000000##FFFFFF
##3346901.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5093
Deuteranopia (green-blind)
#04478E
Tritanopia (blue-blind)
#005764
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334690;
/* rgb */ color: rgb(51, 70, 144);
/* oklch */ color: oklch(42.0% 0.124 269.6);
Tailwind
colors: {
  custom: {
    50: '#7579b1',
    500: '#334690',
    950: '#000000',
  },
}
SCSS
$custom: #334690;
$custom-light: #7579b1;
$custom-dark: #000000;
JSON
{
  "hex": "#334690",
  "rgb": {
    "r": 51,
    "g": 70,
    "b": 144
  },
  "hsl": {
    "h": 227.742,
    "s": 47.692,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42045,
    "c": 0.12407,
    "h": 269.6
  },
  "luminance": 0.07098
}

Semantic roles & 50–950 ramp

primary
#334690
secondary
#B5A56A
accent
#BC51D7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334690

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

Preview Lab → · Contrast checker → · Palette generator →

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