#334298#334298

#334298 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.8% C 0.141 H 271.5°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#334298
RGBrgb(51, 66, 152)
HSLhsl(231, 50%, 40%)
HSVhsv(231, 66%, 60%)
CMYKcmyk(66.4%, 56.6%, 0%, 40.4%)
CIE-LABlab(31.50, 22.97, -49.04)
CIE-LCHlch(31.50, 54.15, 295.10°)
OKLaboklab(41.83% 0.0037 -0.141)
OKLCHoklch(41.83% 0.141 271.5)
XYZxyz(8.9790, 6.8664, 30.5518)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334298 #988933
analogous
#337598 #334298 #563398
triadic
#334298 #983342 #429833
tetradic
#334298 #983375 #988933 #339856
square
#334298 #983375 #988933 #339856
split-complementary
#334298 #985633 #759833
monochromatic
#141A3C #242E6A #334298 #4759C1 #7582D1

Accessibility & contrast

On white

8.85
#334298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#334298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334298
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334298#FFFFFF#000000##FFFFFF
##3342981.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #334298;
/* rgb */ color: rgb(51, 66, 152);
/* oklch */ color: oklch(41.8% 0.141 271.5);
Tailwind
colors: {
  custom: {
    50: '#7676b7',
    500: '#334298',
    950: '#000000',
  },
}
SCSS
$custom: #334298;
$custom-light: #7676b7;
$custom-dark: #000000;
JSON
{
  "hex": "#334298",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 152
  },
  "hsl": {
    "h": 231.089,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41832,
    "c": 0.14103,
    "h": 271.5
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

primary
#334298
secondary
#B9AE6E
accent
#C54FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334298

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

Preview Lab → · Contrast checker → · Palette generator →

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