#334098#334098

#334098 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.144 H 272.2°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#334098
RGBrgb(51, 64, 152)
HSLhsl(232, 50%, 40%)
HSVhsv(232, 66%, 60%)
CMYKcmyk(66.4%, 57.9%, 0%, 40.4%)
CIE-LABlab(30.97, 24.31, -49.91)
CIE-LCHlch(30.97, 55.51, 295.97°)
OKLaboklab(41.43% 0.0055 -0.1436)
OKLCHoklch(41.43% 0.144 272.2)
XYZxyz(8.8642, 6.6368, 30.5136)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334098 #988B33
analogous
#337398 #334098 #583398
triadic
#334098 #983340 #409833
tetradic
#334098 #983373 #988B33 #339858
square
#334098 #983373 #988B33 #339858
split-complementary
#334098 #985833 #739833
monochromatic
#14193C #242D6A #334098 #4757C1 #7581D1

Accessibility & contrast

On white

9.02
#334098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#334098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334098
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334098#FFFFFF#000000##FFFFFF
##3340981.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#005565
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #334098;
/* rgb */ color: rgb(51, 64, 152);
/* oklch */ color: oklch(41.4% 0.144 272.2);
Tailwind
colors: {
  custom: {
    50: '#7774b7',
    500: '#334098',
    950: '#000000',
  },
}
SCSS
$custom: #334098;
$custom-light: #7774b7;
$custom-dark: #000000;
JSON
{
  "hex": "#334098",
  "rgb": {
    "r": 51,
    "g": 64,
    "b": 152
  },
  "hsl": {
    "h": 232.277,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41432,
    "c": 0.14367,
    "h": 272.2
  },
  "luminance": 0.06638
}

Semantic roles & 50–950 ramp

primary
#334098
secondary
#B9AF6E
accent
#C74FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #334098

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

Preview Lab → · Contrast checker → · Palette generator →

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