#334190#334190

#334190 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.131 H 271.8°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#334190
RGBrgb(51, 65, 144)
HSLhsl(231, 48%, 38%)
HSVhsv(231, 65%, 56%)
CMYKcmyk(64.6%, 54.9%, 0%, 43.5%)
CIE-LABlab(30.63, 20.71, -45.55)
CIE-LCHlch(30.63, 50.04, 294.45°)
OKLaboklab(40.99% 0.0042 -0.1307)
OKLCHoklch(40.99% 0.131 271.8)
XYZxyz(8.2879, 6.4973, 27.1975)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334190 #908233
analogous
#336F90 #334190 #533390
triadic
#334190 #903341 #419033
tetradic
#334190 #90336F #908233 #339053
square
#334190 #90336F #908233 #339053
split-complementary
#334190 #905333 #6F9033
monochromatic
#131836 #232D63 #334190 #4456BD #717FCD

Accessibility & contrast

On white

9.13
#334190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#334190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334190
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334190#FFFFFF#000000##FFFFFF
##3341901.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4C93
Deuteranopia (green-blind)
#00448E
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334190;
/* rgb */ color: rgb(51, 65, 144);
/* oklch */ color: oklch(41.0% 0.131 271.8);
Tailwind
colors: {
  custom: {
    50: '#7575b1',
    500: '#334190',
    950: '#000000',
  },
}
SCSS
$custom: #334190;
$custom-light: #7575b1;
$custom-dark: #000000;
JSON
{
  "hex": "#334190",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 144
  },
  "hsl": {
    "h": 230.968,
    "s": 47.692,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40993,
    "c": 0.13081,
    "h": 271.8
  },
  "luminance": 0.06498
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334190

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

Preview Lab → · Contrast checker → · Palette generator →

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