#334890#334890

#334890 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.5% C 0.121 H 268.6°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#334890
RGBrgb(51, 72, 144)
HSLhsl(226, 48%, 38%)
HSVhsv(226, 65%, 56%)
CMYKcmyk(64.6%, 50%, 0%, 43.5%)
CIE-LABlab(32.59, 16.01, -42.39)
CIE-LCHlch(32.59, 45.31, 290.69°)
OKLaboklab(42.48% -0.003 -0.1213)
OKLCHoklch(42.48% 0.121 268.6)
XYZxyz(8.7149, 7.3514, 27.3398)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334890 #907B33
analogous
#337690 #334890 #4D3390
triadic
#334890 #903348 #489033
tetradic
#334890 #903376 #907B33 #33904D
square
#334890 #903376 #907B33 #33904D
split-complementary
#334890 #904D33 #769033
monochromatic
#131B36 #233163 #334890 #445FBD #7186CD

Accessibility & contrast

On white

8.50
#334890 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#334890 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334890
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334890#FFFFFF#000000##FFFFFF
##3348901.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225193
Deuteranopia (green-blind)
#0E498F
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334890;
/* rgb */ color: rgb(51, 72, 144);
/* oklch */ color: oklch(42.5% 0.121 268.6);
Tailwind
colors: {
  custom: {
    50: '#757ab1',
    500: '#334890',
    950: '#000000',
  },
}
SCSS
$custom: #334890;
$custom-light: #757ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#334890",
  "rgb": {
    "r": 51,
    "g": 72,
    "b": 144
  },
  "hsl": {
    "h": 226.452,
    "s": 47.692,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42475,
    "c": 0.12139,
    "h": 268.6
  },
  "luminance": 0.07352
}

Semantic roles & 50–950 ramp

primary
#334890
secondary
#B5A46A
accent
#B951D7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334890

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

Preview Lab → · Contrast checker → · Palette generator →

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