#333D94#333D94

#333D94 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.142 H 273.3°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#333D94
RGBrgb(51, 61, 148)
HSLhsl(234, 49%, 39%)
HSVhsv(234, 66%, 58%)
CMYKcmyk(65.5%, 58.8%, 0%, 42%)
CIE-LABlab(29.86, 24.85, -49.26)
CIE-LCHlch(29.86, 55.17, 296.77°)
OKLaboklab(40.51% 0.0082 -0.1417)
OKLCHoklch(40.51% 0.142 273.3)
XYZxyz(8.3775, 6.1787, 28.7624)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333D94 #948A33
analogous
#336E94 #333D94 #5A3394
triadic
#333D94 #94333D #3D9433
tetradic
#333D94 #94336E #948A33 #33945A
square
#333D94 #94336E #948A33 #33945A
split-complementary
#333D94 #945A33 #6E9433
monochromatic
#141739 #232A66 #333D94 #4552BF #737CCF

Accessibility & contrast

On white

9.39
#333D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#333D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333D94
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333D94#FFFFFF#000000##FFFFFF
##333D941.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#005262
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #333d94;
/* rgb */ color: rgb(51, 61, 148);
/* oklch */ color: oklch(40.5% 0.142 273.3);
Tailwind
colors: {
  custom: {
    50: '#7672b4',
    500: '#333d94',
    950: '#000000',
  },
}
SCSS
$custom: #333d94;
$custom-light: #7672b4;
$custom-dark: #000000;
JSON
{
  "hex": "#333d94",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 148
  },
  "hsl": {
    "h": 233.814,
    "s": 48.744,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40509,
    "c": 0.14194,
    "h": 273.3
  },
  "luminance": 0.06179
}

Semantic roles & 50–950 ramp

primary
#333D94
secondary
#B7AF6C
accent
#CA4FD8
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #333D94

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

Preview Lab → · Contrast checker → · Palette generator →

#333D94 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva