#334398#334398

#334398 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.0% C 0.140 H 271.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#334398
RGBrgb(51, 67, 152)
HSLhsl(230, 50%, 40%)
HSVhsv(230, 66%, 60%)
CMYKcmyk(66.4%, 55.9%, 0%, 40.4%)
CIE-LABlab(31.77, 22.31, -48.60)
CIE-LCHlch(31.77, 53.47, 294.66°)
OKLaboklab(42.04% 0.0027 -0.1397)
OKLCHoklch(42.04% 0.14 271.1)
XYZxyz(9.0380, 6.9843, 30.5715)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334398 #988833
analogous
#337698 #334398 #553398
triadic
#334398 #983343 #439833
tetradic
#334398 #983376 #988833 #339855
square
#334398 #983376 #988833 #339855
split-complementary
#334398 #985533 #769833
monochromatic
#141B3C #242F6A #334398 #475AC1 #7583D1

Accessibility & contrast

On white

8.76
#334398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#334398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334398
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334398#FFFFFF#000000##FFFFFF
##3343981.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334398;
/* rgb */ color: rgb(51, 67, 152);
/* oklch */ color: oklch(42.0% 0.140 271.1);
Tailwind
colors: {
  custom: {
    50: '#7676b7',
    500: '#334398',
    950: '#000000',
  },
}
SCSS
$custom: #334398;
$custom-light: #7676b7;
$custom-dark: #000000;
JSON
{
  "hex": "#334398",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 152
  },
  "hsl": {
    "h": 230.495,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42035,
    "c": 0.13971,
    "h": 271.1
  },
  "luminance": 0.06985
}

Semantic roles & 50–950 ramp

primary
#334398
secondary
#B9AD6E
accent
#C34FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #334398

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

Preview Lab → · Contrast checker → · Palette generator →

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