#334A9B#334A9B

#334A9B is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.7% C 0.135 H 268.4°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#334A9B
RGBrgb(51, 74, 155)
HSLhsl(227, 50%, 40%)
HSVhsv(227, 67%, 61%)
CMYKcmyk(67.1%, 52.3%, 0%, 39.2%)
CIE-LABlab(33.91, 18.74, -46.95)
CIE-LCHlch(33.91, 50.55, 291.76°)
OKLaboklab(43.72% -0.0037 -0.1347)
OKLCHoklch(43.72% 0.135 268.4)
XYZxyz(9.7284, 7.9670, 32.0291)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A9B #9B8433
analogous
#337E9B #334A9B #50339B
triadic
#334A9B #9B334A #4A9B33
tetradic
#334A9B #9B337E #9B8433 #339B50
square
#334A9B #9B337E #9B8433 #339B50
split-complementary
#334A9B #9B5033 #7E9B33
monochromatic
#151E3F #24346D #334A9B #4863C3 #768BD2

Accessibility & contrast

On white

8.10
#334A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#334A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334A9B
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A9B#FFFFFF#000000##FFFFFF
##334A9B1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19559E
Deuteranopia (green-blind)
#004B99
Tritanopia (blue-blind)
#005D6B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #334a9b;
/* rgb */ color: rgb(51, 74, 155);
/* oklch */ color: oklch(43.7% 0.135 268.4);
Tailwind
colors: {
  custom: {
    50: '#777cb9',
    500: '#334a9b',
    950: '#000000',
  },
}
SCSS
$custom: #334a9b;
$custom-light: #777cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#334a9b",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 155
  },
  "hsl": {
    "h": 226.731,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43719,
    "c": 0.13479,
    "h": 268.4
  },
  "luminance": 0.07968
}

Semantic roles & 50–950 ramp

primary
#334A9B
secondary
#BAAA6F
accent
#BB4EDA
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #334A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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