#334380#334380

#334380 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.2% C 0.104 H 270.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#334380
RGBrgb(51, 67, 128)
HSLhsl(228, 43%, 35%)
HSVhsv(228, 60%, 50%)
CMYKcmyk(60.2%, 47.7%, 0%, 49.8%)
CIE-LABlab(30.10, 13.52, -36.52)
CIE-LCHlch(30.10, 38.94, 290.31°)
OKLaboklab(40.24% 0.0002 -0.1042)
OKLCHoklch(40.24% 0.104 270.1)
XYZxyz(7.2674, 6.2761, 21.2463)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334380 #807033
analogous
#336A80 #334380 #493380
triadic
#334380 #803343 #438033
tetradic
#334380 #80336A #807033 #338049
square
#334380 #80336A #807033 #338049
split-complementary
#334380 #804933 #6A8033
monochromatic
#101528 #222C54 #334380 #445AAC #6A7CC4

Accessibility & contrast

On white

9.31
#334380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#334380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334380
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334380#FFFFFF#000000##FFFFFF
##3343801.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274A82
Deuteranopia (green-blind)
#1B447F
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334380;
/* rgb */ color: rgb(51, 67, 128);
/* oklch */ color: oklch(40.2% 0.104 270.1);
Tailwind
colors: {
  custom: {
    50: '#7276a5',
    500: '#334380',
    950: '#000000',
  },
}
SCSS
$custom: #334380;
$custom-light: #7276a5;
$custom-dark: #000000;
JSON
{
  "hex": "#334380",
  "rgb": {
    "r": 51,
    "g": 67,
    "b": 128
  },
  "hsl": {
    "h": 227.532,
    "s": 43.017,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40235,
    "c": 0.10416,
    "h": 270.1
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#334380
secondary
#AB9C63
accent
#B955D3
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #334380

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

Preview Lab → · Contrast checker → · Palette generator →

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