#334F9B#334F9B

#334F9B is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.128 H 266.1°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#334F9B
RGBrgb(51, 79, 155)
HSLhsl(224, 50%, 40%)
HSVhsv(224, 67%, 61%)
CMYKcmyk(67.1%, 49%, 0%, 39.2%)
CIE-LABlab(35.32, 15.41, -44.68)
CIE-LCHlch(35.32, 47.27, 289.03°)
OKLaboklab(44.79% -0.0086 -0.128)
OKLCHoklch(44.79% 0.128 266.1)
XYZxyz(10.0756, 8.6614, 32.1448)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F9B #9B7F33
analogous
#33839B #334F9B #4B339B
triadic
#334F9B #9B334F #4F9B33
tetradic
#334F9B #9B3383 #9B7F33 #339B4B
square
#334F9B #9B3383 #9B7F33 #339B4B
split-complementary
#334F9B #9B4B33 #839B33
monochromatic
#15203F #24386D #334F9B #4869C3 #768FD2

Accessibility & contrast

On white

7.69
#334F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#334F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F9B
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F9B#FFFFFF#000000##FFFFFF
##334F9B1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27589E
Deuteranopia (green-blind)
#0F4F99
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334f9b;
/* rgb */ color: rgb(51, 79, 155);
/* oklch */ color: oklch(44.8% 0.128 266.1);
Tailwind
colors: {
  custom: {
    50: '#767fb9',
    500: '#334f9b',
    950: '#000000',
  },
}
SCSS
$custom: #334f9b;
$custom-light: #767fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#334f9b",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 155
  },
  "hsl": {
    "h": 223.846,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44791,
    "c": 0.12827,
    "h": 266.1
  },
  "luminance": 0.08662
}

Semantic roles & 50–950 ramp

primary
#334F9B
secondary
#BAA66F
accent
#B44EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #334F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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