#333098#333098

#333098 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.164 H 276.7°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#333098
RGBrgb(51, 48, 152)
HSLhsl(242, 52%, 39%)
HSVhsv(242, 68%, 60%)
CMYKcmyk(66.4%, 68.4%, 0%, 40.4%)
CIE-LABlab(26.97, 34.69, -56.42)
CIE-LCHlch(26.97, 66.23, 301.59°)
OKLaboklab(38.5% 0.0191 -0.1628)
OKLCHoklch(38.5% 0.164 276.7)
XYZxyz(8.0878, 5.0840, 30.2548)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333098 #959830
analogous
#306198 #333098 #673098
triadic
#333098 #983330 #309833
tetradic
#333098 #983061 #959830 #309867
square
#333098 #983061 #959830 #309867
split-complementary
#333098 #986730 #619830
monochromatic
#14133B #232169 #333098 #4642C3 #7370D2

Accessibility & contrast

On white

10.41
#333098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#333098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333098
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333098#FFFFFF#000000##FFFFFF
##3330981.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#004B60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #333098;
/* rgb */ color: rgb(51, 48, 152);
/* oklch */ color: oklch(38.5% 0.164 276.7);
Tailwind
colors: {
  custom: {
    50: '#7869b7',
    500: '#333098',
    950: '#000000',
  },
}
SCSS
$custom: #333098;
$custom-light: #7869b7;
$custom-dark: #000000;
JSON
{
  "hex": "#333098",
  "rgb": {
    "r": 51,
    "g": 48,
    "b": 152
  },
  "hsl": {
    "h": 241.731,
    "s": 52,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38496,
    "c": 0.16392,
    "h": 276.7
  },
  "luminance": 0.05085
}

Semantic roles & 50–950 ramp

primary
#333098
secondary
#B7BA6A
accent
#DB4CD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #333098

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

Preview Lab → · Contrast checker → · Palette generator →

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