#334D9C#334D9C

#334D9C is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.132 H 267.2°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#334D9C
RGBrgb(51, 77, 156)
HSLhsl(225, 51%, 41%)
HSVhsv(225, 67%, 61%)
CMYKcmyk(67.3%, 50.6%, 0%, 38.8%)
CIE-LABlab(34.82, 17.11, -46.09)
CIE-LCHlch(34.82, 49.16, 290.37°)
OKLaboklab(44.43% -0.0065 -0.1321)
OKLCHoklch(44.43% 0.132 267.2)
XYZxyz(10.0178, 8.4109, 32.5416)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334D9C #9C8233
analogous
#33819C #334D9C #4D339C
triadic
#334D9C #9C334D #4D9C33
tetradic
#334D9C #9C3381 #9C8233 #339C4D
square
#334D9C #9C3381 #9C8233 #339C4D
split-complementary
#334D9C #9C4D33 #819C33
monochromatic
#151F40 #24366E #334D9C #4967C3 #778ED3

Accessibility & contrast

On white

7.83
#334D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#334D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334D9C
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334D9C#FFFFFF#000000##FFFFFF
##334D9C1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21579F
Deuteranopia (green-blind)
#014D9A
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334d9c;
/* rgb */ color: rgb(51, 77, 156);
/* oklch */ color: oklch(44.4% 0.132 267.2);
Tailwind
colors: {
  custom: {
    50: '#777eba',
    500: '#334d9c',
    950: '#000000',
  },
}
SCSS
$custom: #334d9c;
$custom-light: #777eba;
$custom-dark: #000000;
JSON
{
  "hex": "#334d9c",
  "rgb": {
    "r": 51,
    "g": 77,
    "b": 156
  },
  "hsl": {
    "h": 225.143,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44432,
    "c": 0.13231,
    "h": 267.2
  },
  "luminance": 0.08412
}

Semantic roles & 50–950 ramp

primary
#334D9C
secondary
#BBA870
accent
#B74EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #334D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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