#334E9C#334E9C

#334E9C is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.6% C 0.131 H 266.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#334E9C
RGBrgb(51, 78, 156)
HSLhsl(225, 51%, 41%)
HSVhsv(225, 67%, 61%)
CMYKcmyk(67.3%, 50%, 0%, 38.8%)
CIE-LABlab(35.11, 16.45, -45.63)
CIE-LCHlch(35.11, 48.51, 289.82°)
OKLaboklab(44.65% -0.0075 -0.1308)
OKLCHoklch(44.65% 0.131 266.7)
XYZxyz(10.0883, 8.5519, 32.5651)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334E9C #9C8133
analogous
#33839C #334E9C #4C339C
triadic
#334E9C #9C334E #4E9C33
tetradic
#334E9C #9C3383 #9C8133 #339C4C
square
#334E9C #9C3383 #9C8133 #339C4C
split-complementary
#334E9C #9C4C33 #839C33
monochromatic
#152040 #24376E #334E9C #4968C3 #778ED3

Accessibility & contrast

On white

7.75
#334E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#334E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334E9C
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334E9C#FFFFFF#000000##FFFFFF
##334E9C1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23589F
Deuteranopia (green-blind)
#064E9A
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #334e9c;
/* rgb */ color: rgb(51, 78, 156);
/* oklch */ color: oklch(44.6% 0.131 266.7);
Tailwind
colors: {
  custom: {
    50: '#777fba',
    500: '#334e9c',
    950: '#000000',
  },
}
SCSS
$custom: #334e9c;
$custom-light: #777fba;
$custom-dark: #000000;
JSON
{
  "hex": "#334e9c",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 156
  },
  "hsl": {
    "h": 224.571,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44647,
    "c": 0.13102,
    "h": 266.7
  },
  "luminance": 0.08553
}

Semantic roles & 50–950 ramp

primary
#334E9C
secondary
#BBA870
accent
#B64EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #334E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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