#335097#335097

#335097 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.7% C 0.121 H 265.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#335097
RGBrgb(51, 80, 151)
HSLhsl(223, 50%, 40%)
HSVhsv(223, 66%, 59%)
CMYKcmyk(66.2%, 47%, 0%, 40.8%)
CIE-LABlab(35.35, 13.26, -42.22)
CIE-LCHlch(35.35, 44.26, 287.44°)
OKLaboklab(44.73% -0.0102 -0.1207)
OKLCHoklch(44.73% 0.121 265.2)
XYZxyz(9.8179, 8.6746, 30.4291)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#335097 #977A33
analogous
#338297 #335097 #483397
triadic
#335097 #973350 #509733
tetradic
#335097 #973382 #977A33 #339748
square
#335097 #973382 #977A33 #339748
split-complementary
#335097 #974833 #829733
monochromatic
#14203C #243869 #335097 #476AC1 #748FD0

Accessibility & contrast

On white

7.68
#335097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#335097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #335097
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##335097#FFFFFF#000000##FFFFFF
##3350971.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D589A
Deuteranopia (green-blind)
#1B4F96
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #335097;
/* rgb */ color: rgb(51, 80, 151);
/* oklch */ color: oklch(44.7% 0.121 265.2);
Tailwind
colors: {
  custom: {
    50: '#7680b6',
    500: '#335097',
    950: '#000000',
  },
}
SCSS
$custom: #335097;
$custom-light: #7680b6;
$custom-dark: #000000;
JSON
{
  "hex": "#335097",
  "rgb": {
    "r": 51,
    "g": 80,
    "b": 151
  },
  "hsl": {
    "h": 222.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44727,
    "c": 0.12117,
    "h": 265.2
  },
  "luminance": 0.08675
}

Semantic roles & 50–950 ramp

primary
#335097
secondary
#B8A36D
accent
#B14FD9
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #335097

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

Preview Lab → · Contrast checker → · Palette generator →

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