#334990#334990

#334990 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.7% C 0.120 H 268.1°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#334990
RGBrgb(51, 73, 144)
HSLhsl(226, 48%, 38%)
HSVhsv(226, 65%, 56%)
CMYKcmyk(64.6%, 49.3%, 0%, 43.5%)
CIE-LABlab(32.88, 15.34, -41.93)
CIE-LCHlch(32.88, 44.65, 290.09°)
OKLaboklab(42.69% -0.004 -0.12)
OKLCHoklch(42.69% 0.12 268.1)
XYZxyz(8.7801, 7.4817, 27.3616)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334990 #907A33
analogous
#337790 #334990 #4B3390
triadic
#334990 #903349 #499033
tetradic
#334990 #903377 #907A33 #33904B
square
#334990 #903377 #907A33 #33904B
split-complementary
#334990 #904B33 #779033
monochromatic
#131B36 #233263 #334990 #4460BD #7187CD

Accessibility & contrast

On white

8.41
#334990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#334990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334990
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334990#FFFFFF#000000##FFFFFF
##3349901.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245293
Deuteranopia (green-blind)
#12498F
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334990;
/* rgb */ color: rgb(51, 73, 144);
/* oklch */ color: oklch(42.7% 0.120 268.1);
Tailwind
colors: {
  custom: {
    50: '#747bb1',
    500: '#334990',
    950: '#000000',
  },
}
SCSS
$custom: #334990;
$custom-light: #747bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#334990",
  "rgb": {
    "r": 51,
    "g": 73,
    "b": 144
  },
  "hsl": {
    "h": 225.806,
    "s": 47.692,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42692,
    "c": 0.12006,
    "h": 268.1
  },
  "luminance": 0.07483
}

Semantic roles & 50–950 ramp

primary
#334990
secondary
#B5A36A
accent
#B751D7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334990

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

Preview Lab → · Contrast checker → · Palette generator →

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