#334385#334385

#334385 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.6% C 0.112 H 270.5°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#334385
RGBrgb(51, 67, 133)
HSLhsl(228, 45%, 36%)
HSVhsv(228, 62%, 52%)
CMYKcmyk(61.7%, 49.6%, 0%, 47.8%)
CIE-LABlab(30.43, 15.34, -39.10)
CIE-LCHlch(30.43, 42.00, 291.42°)
OKLaboklab(40.59% 0.001 -0.1117)
OKLCHoklch(40.59% 0.112 270.5)
XYZxyz(7.6046, 6.4110, 23.0224)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334385 #857533
analogous
#336C85 #334385 #4C3385
triadic
#334385 #853343 #438533
tetradic
#334385 #85336C #857533 #33854C
square
#334385 #85336C #857533 #33854C
split-complementary
#334385 #854C33 #6C8533
monochromatic
#11162D #222D59 #334385 #4459B1 #6C7EC7

Accessibility & contrast

On white

9.20
#334385 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#334385 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334385
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334385#FFFFFF#000000##FFFFFF
##3343851.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224B87
Deuteranopia (green-blind)
#144484
Tritanopia (blue-blind)
#00525D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #334385;
/* rgb */ color: rgb(51, 67, 133);
/* oklch */ color: oklch(40.6% 0.112 270.5);
Tailwind
colors: {
  custom: {
    50: '#7376a9',
    500: '#334385',
    950: '#000000',
  },
}
SCSS
$custom: #334385;
$custom-light: #7376a9;
$custom-dark: #000000;
JSON
{
  "hex": "#334385",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 133
  },
  "hsl": {
    "h": 228.293,
    "s": 44.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4059,
    "c": 0.11175,
    "h": 270.5
  },
  "luminance": 0.06412
}

Semantic roles & 50–950 ramp

primary
#334385
secondary
#AEA065
accent
#BB54D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #334385

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

Preview Lab → · Contrast checker → · Palette generator →

#334385 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva