#334B8A#334B8A

#334B8A is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.7% C 0.108 H 266.2°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#334B8A
RGBrgb(51, 75, 138)
HSLhsl(223, 46%, 37%)
HSVhsv(223, 63%, 54%)
CMYKcmyk(63%, 45.7%, 0%, 45.9%)
CIE-LABlab(33.07, 11.79, -37.95)
CIE-LCHlch(33.07, 39.74, 287.26°)
OKLaboklab(42.71% -0.0071 -0.1083)
OKLCHoklch(42.71% 0.109 266.2)
XYZxyz(8.4672, 7.5702, 25.0548)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334B8A #8A7233
analogous
#33778A #334B8A #46338A
triadic
#334B8A #8A334B #4B8A33
tetradic
#334B8A #8A3377 #8A7233 #338A46
square
#334B8A #8A3377 #8A7233 #338A46
split-complementary
#334B8A #8A4633 #778A33
monochromatic
#121A31 #22335D #334B8A #4463B7 #6E87C9

Accessibility & contrast

On white

8.35
#334B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#334B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334B8A
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334B8A#FFFFFF#000000##FFFFFF
##334B8A1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E528C
Deuteranopia (green-blind)
#204A89
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #334b8a;
/* rgb */ color: rgb(51, 75, 138);
/* oklch */ color: oklch(42.7% 0.108 266.2);
Tailwind
colors: {
  custom: {
    50: '#737cac',
    500: '#334b8a',
    950: '#000000',
  },
}
SCSS
$custom: #334b8a;
$custom-light: #737cac;
$custom-dark: #000000;
JSON
{
  "hex": "#334b8a",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 138
  },
  "hsl": {
    "h": 223.448,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42714,
    "c": 0.1085,
    "h": 266.2
  },
  "luminance": 0.07571
}

Semantic roles & 50–950 ramp

primary
#334B8A
secondary
#B19D67
accent
#B152D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #334B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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