#334290#334290

#334290 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.2% C 0.129 H 271.4°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#334290
RGBrgb(51, 66, 144)
HSLhsl(230, 48%, 38%)
HSVhsv(230, 65%, 56%)
CMYKcmyk(64.6%, 54.2%, 0%, 43.5%)
CIE-LABlab(30.91, 20.04, -45.11)
CIE-LCHlch(30.91, 49.36, 293.95°)
OKLaboklab(41.2% 0.0032 -0.1294)
OKLCHoklch(41.2% 0.129 271.4)
XYZxyz(8.3458, 6.6131, 27.2168)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334290 #908133
analogous
#337090 #334290 #533390
triadic
#334290 #903342 #429033
tetradic
#334290 #903370 #908133 #339053
square
#334290 #903370 #908133 #339053
split-complementary
#334290 #905333 #709033
monochromatic
#131936 #232D63 #334290 #4457BD #7180CD

Accessibility & contrast

On white

9.04
#334290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#334290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334290
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334290#FFFFFF#000000##FFFFFF
##3342901.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104D93
Deuteranopia (green-blind)
#00458E
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334290;
/* rgb */ color: rgb(51, 66, 144);
/* oklch */ color: oklch(41.2% 0.129 271.4);
Tailwind
colors: {
  custom: {
    50: '#7576b1',
    500: '#334290',
    950: '#000000',
  },
}
SCSS
$custom: #334290;
$custom-light: #7576b1;
$custom-dark: #000000;
JSON
{
  "hex": "#334290",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 144
  },
  "hsl": {
    "h": 230.323,
    "s": 47.692,
    "l": 38.235
  },
  "oklch": {
    "l": 0.412,
    "c": 0.12946,
    "h": 271.4
  },
  "luminance": 0.06614
}

Semantic roles & 50–950 ramp

primary
#334290
secondary
#B5A96A
accent
#C251D7
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334290

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

Preview Lab → · Contrast checker → · Palette generator →

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