#334F9C#334F9C

#334F9C is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.130 H 266.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#334F9C
RGBrgb(51, 79, 156)
HSLhsl(224, 51%, 41%)
HSVhsv(224, 67%, 61%)
CMYKcmyk(67.3%, 49.4%, 0%, 38.8%)
CIE-LABlab(35.39, 15.78, -45.18)
CIE-LCHlch(35.39, 47.86, 289.26°)
OKLaboklab(44.86% -0.0085 -0.1294)
OKLCHoklch(44.86% 0.13 266.2)
XYZxyz(10.1599, 8.6951, 32.5889)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334F9C #9C8033
analogous
#33839C #334F9C #4B339C
triadic
#334F9C #9C334F #4F9C33
tetradic
#334F9C #9C3383 #9C8033 #339C4B
square
#334F9C #9C3383 #9C8033 #339C4B
split-complementary
#334F9C #9C4B33 #839C33
monochromatic
#152040 #24386E #334F9C #4969C3 #778FD3

Accessibility & contrast

On white

7.67
#334F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#334F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334F9C
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334F9C#FFFFFF#000000##FFFFFF
##334F9C1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26589F
Deuteranopia (green-blind)
#0C4F9A
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334f9c;
/* rgb */ color: rgb(51, 79, 156);
/* oklch */ color: oklch(44.9% 0.130 266.2);
Tailwind
colors: {
  custom: {
    50: '#777fba',
    500: '#334f9c',
    950: '#000000',
  },
}
SCSS
$custom: #334f9c;
$custom-light: #777fba;
$custom-dark: #000000;
JSON
{
  "hex": "#334f9c",
  "rgb": {
    "r": 51,
    "g": 79,
    "b": 156
  },
  "hsl": {
    "h": 224,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44863,
    "c": 0.12972,
    "h": 266.2
  },
  "luminance": 0.08696
}

Semantic roles & 50–950 ramp

primary
#334F9C
secondary
#BBA770
accent
#B54EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #334F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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