#334192#334192

#334192 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.1% C 0.134 H 271.8°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#334192
RGBrgb(51, 65, 146)
HSLhsl(231, 48%, 39%)
HSVhsv(231, 65%, 57%)
CMYKcmyk(65.1%, 55.5%, 0%, 42.7%)
CIE-LABlab(30.78, 21.44, -46.54)
CIE-LCHlch(30.78, 51.24, 294.74°)
OKLaboklab(41.15% 0.0043 -0.1336)
OKLCHoklch(41.15% 0.134 271.8)
XYZxyz(8.4421, 6.5590, 28.0097)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334192 #928433
analogous
#337092 #334192 #543392
triadic
#334192 #923341 #419233
tetradic
#334192 #923370 #928433 #339254
square
#334192 #923370 #928433 #339254
split-complementary
#334192 #925433 #709233
monochromatic
#131937 #232D65 #334192 #4456BE #727FCE

Accessibility & contrast

On white

9.08
#334192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#334192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334192
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334192#FFFFFF#000000##FFFFFF
##3341921.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064D95
Deuteranopia (green-blind)
#004490
Tritanopia (blue-blind)
#005463
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334192;
/* rgb */ color: rgb(51, 65, 146);
/* oklch */ color: oklch(41.1% 0.134 271.8);
Tailwind
colors: {
  custom: {
    50: '#7575b3',
    500: '#334192',
    950: '#000000',
  },
}
SCSS
$custom: #334192;
$custom-light: #7575b3;
$custom-dark: #000000;
JSON
{
  "hex": "#334192",
  "rgb": {
    "r": 51,
    "g": 65,
    "b": 146
  },
  "hsl": {
    "h": 231.158,
    "s": 48.223,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4115,
    "c": 0.13372,
    "h": 271.8
  },
  "luminance": 0.0656
}

Semantic roles & 50–950 ramp

primary
#334192
secondary
#B6AB6B
accent
#C450D8
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334192

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

Preview Lab → · Contrast checker → · Palette generator →

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