#334397#334397

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

Color values

HEX#334397
RGBrgb(51, 67, 151)
HSLhsl(230, 50%, 40%)
HSVhsv(230, 66%, 59%)
CMYKcmyk(66.2%, 55.6%, 0%, 40.8%)
CIE-LABlab(31.70, 21.94, -48.11)
CIE-LCHlch(31.70, 52.88, 294.51°)
OKLaboklab(41.96% 0.0027 -0.1383)
OKLCHoklch(41.96% 0.138 271.1)
XYZxyz(8.9564, 6.9517, 30.1420)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334397 #978733
analogous
#337597 #334397 #553397
triadic
#334397 #973343 #439733
tetradic
#334397 #973375 #978733 #339755
square
#334397 #973375 #978733 #339755
split-complementary
#334397 #975533 #759733
monochromatic
#141A3C #242F69 #334397 #475AC1 #7483D0

Accessibility & contrast

On white

8.79
#334397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#334397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334397
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334397#FFFFFF#000000##FFFFFF
##3343971.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024F9A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#005766
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #334397;
/* rgb */ color: rgb(51, 67, 151);
/* oklch */ color: oklch(42.0% 0.138 271.1);
Tailwind
colors: {
  custom: {
    50: '#7676b6',
    500: '#334397',
    950: '#000000',
  },
}
SCSS
$custom: #334397;
$custom-light: #7676b6;
$custom-dark: #000000;
JSON
{
  "hex": "#334397",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 151
  },
  "hsl": {
    "h": 230.4,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41955,
    "c": 0.13828,
    "h": 271.1
  },
  "luminance": 0.06952
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334397

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

Preview Lab → · Contrast checker → · Palette generator →

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