#334285#334285

#334285 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.4% C 0.113 H 271.1°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#334285
RGBrgb(51, 66, 133)
HSLhsl(229, 45%, 36%)
HSVhsv(229, 62%, 52%)
CMYKcmyk(61.7%, 50.4%, 0%, 47.8%)
CIE-LABlab(30.14, 16.01, -39.56)
CIE-LCHlch(30.14, 42.68, 292.04°)
OKLaboklab(40.37% 0.0021 -0.1131)
OKLCHoklch(40.37% 0.113 271.1)
XYZxyz(7.5457, 6.2931, 23.0028)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334285 #857633
analogous
#336B85 #334285 #4D3385
triadic
#334285 #853342 #428533
tetradic
#334285 #85336B #857633 #33854D
square
#334285 #85336B #857633 #33854D
split-complementary
#334285 #854D33 #6B8533
monochromatic
#11162D #222C59 #334285 #4458B1 #6C7CC7

Accessibility & contrast

On white

9.30
#334285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #334285
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334285#FFFFFF#000000##FFFFFF
##3342851.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204B87
Deuteranopia (green-blind)
#114484
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334285;
/* rgb */ color: rgb(51, 66, 133);
/* oklch */ color: oklch(40.4% 0.113 271.1);
Tailwind
colors: {
  custom: {
    50: '#7376a9',
    500: '#334285',
    950: '#000000',
  },
}
SCSS
$custom: #334285;
$custom-light: #7376a9;
$custom-dark: #000000;
JSON
{
  "hex": "#334285",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 133
  },
  "hsl": {
    "h": 229.024,
    "s": 44.565,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40373,
    "c": 0.11313,
    "h": 271.1
  },
  "luminance": 0.06294
}

Semantic roles & 50–950 ramp

primary
#334285
secondary
#AEA165
accent
#BD54D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #334285

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

Preview Lab → · Contrast checker → · Palette generator →

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