#334A8B#334A8B

#334A8B is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.6% C 0.111 H 267.0°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#334A8B
RGBrgb(51, 74, 139)
HSLhsl(224, 46%, 37%)
HSVhsv(224, 63%, 55%)
CMYKcmyk(63.3%, 46.8%, 0%, 45.5%)
CIE-LABlab(32.84, 12.83, -38.93)
CIE-LCHlch(32.84, 40.99, 288.24°)
OKLaboklab(42.56% -0.0059 -0.1111)
OKLCHoklch(42.56% 0.111 267)
XYZxyz(8.4726, 7.4647, 25.4154)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334A8B #8B7433
analogous
#33768B #334A8B #48338B
triadic
#334A8B #8B334A #4A8B33
tetradic
#334A8B #8B3376 #8B7433 #338B48
square
#334A8B #8B3376 #8B7433 #338B48
split-complementary
#334A8B #8B4833 #768B33
monochromatic
#121A31 #23325E #334A8B #4362B8 #6E86CA

Accessibility & contrast

On white

8.42
#334A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#334A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334A8B
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334A8B#FFFFFF#000000##FFFFFF
##334A8B1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B518D
Deuteranopia (green-blind)
#1D4A8A
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #334a8b;
/* rgb */ color: rgb(51, 74, 139);
/* oklch */ color: oklch(42.6% 0.111 267.0);
Tailwind
colors: {
  custom: {
    50: '#737cad',
    500: '#334a8b',
    950: '#000000',
  },
}
SCSS
$custom: #334a8b;
$custom-light: #737cad;
$custom-dark: #000000;
JSON
{
  "hex": "#334a8b",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 139
  },
  "hsl": {
    "h": 224.318,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42559,
    "c": 0.1113,
    "h": 267
  },
  "luminance": 0.07465
}

Semantic roles & 50–950 ramp

primary
#334A8B
secondary
#B29F68
accent
#B352D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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