#334F8A#334F8A

#334F8A is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.6% C 0.103 H 263.6°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#334F8A
RGBrgb(51, 79, 138)
HSLhsl(221, 46%, 37%)
HSVhsv(221, 63%, 54%)
CMYKcmyk(63%, 42.8%, 0%, 45.9%)
CIE-LABlab(34.25, 9.14, -36.07)
CIE-LCHlch(34.25, 37.21, 284.22°)
OKLaboklab(43.62% -0.0116 -0.1027)
OKLCHoklch(43.62% 0.103 263.6)
XYZxyz(8.7471, 8.1300, 25.1481)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F8A #8A6E33
analogous
#337B8A #334F8A #43338A
triadic
#334F8A #8A334F #4F8A33
tetradic
#334F8A #8A337B #8A6E33 #338A43
square
#334F8A #8A337B #8A6E33 #338A43
split-complementary
#334F8A #8A4333 #7B8A33
monochromatic
#121C31 #22355D #334F8A #4469B7 #6E8BC9

Accessibility & contrast

On white

8.00
#334F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#334F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F8A
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F8A#FFFFFF#000000##FFFFFF
##334F8A1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35558C
Deuteranopia (green-blind)
#284D89
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #334f8a;
/* rgb */ color: rgb(51, 79, 138);
/* oklch */ color: oklch(43.6% 0.103 263.6);
Tailwind
colors: {
  custom: {
    50: '#737fac',
    500: '#334f8a',
    950: '#000000',
  },
}
SCSS
$custom: #334f8a;
$custom-light: #737fac;
$custom-dark: #000000;
JSON
{
  "hex": "#334f8a",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 220.69,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43623,
    "c": 0.10332,
    "h": 263.6
  },
  "luminance": 0.08131
}

Semantic roles & 50–950 ramp

primary
#334F8A
secondary
#B19A67
accent
#AB52D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #334F8A

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

Preview Lab → · Contrast checker → · Palette generator →

#334F8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva