#334F9F#334F9F

#334F9F is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.134 H 266.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#334F9F
RGBrgb(51, 79, 159)
HSLhsl(224, 51%, 41%)
HSVhsv(224, 68%, 62%)
CMYKcmyk(67.9%, 50.3%, 0%, 37.6%)
CIE-LABlab(35.59, 16.90, -46.66)
CIE-LCHlch(35.59, 49.62, 289.91°)
OKLaboklab(45.08% -0.0081 -0.1338)
OKLCHoklch(45.08% 0.134 266.5)
XYZxyz(10.4171, 8.7980, 33.9434)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F9F #9F8333
analogous
#33859F #334F9F #4D339F
triadic
#334F9F #9F334F #4F9F33
tetradic
#334F9F #9F3385 #9F8333 #339F4D
square
#334F9F #9F3385 #9F8333 #339F4D
split-complementary
#334F9F #9F4D33 #859F33
monochromatic
#152142 #243871 #334F9F #4A6AC5 #7990D4

Accessibility & contrast

On white

7.61
#334F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#334F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F9F
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F9F#FFFFFF#000000##FFFFFF
##334F9F1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2259A2
Deuteranopia (green-blind)
#014F9D
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334f9f;
/* rgb */ color: rgb(51, 79, 159);
/* oklch */ color: oklch(45.1% 0.134 266.5);
Tailwind
colors: {
  custom: {
    50: '#777fbc',
    500: '#334f9f',
    950: '#000000',
  },
}
SCSS
$custom: #334f9f;
$custom-light: #777fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#334f9f",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 159
  },
  "hsl": {
    "h": 224.444,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45082,
    "c": 0.13404,
    "h": 266.5
  },
  "luminance": 0.08799
}

Semantic roles & 50–950 ramp

primary
#334F9F
secondary
#BCA971
accent
#B64DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #334F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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