#333BA5#333BA5

#333BA5 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.168 H 273.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#333BA5
RGBrgb(51, 59, 165)
HSLhsl(236, 53%, 42%)
HSVhsv(236, 69%, 65%)
CMYKcmyk(69.1%, 64.2%, 0%, 35.3%)
CIE-LABlab(30.75, 32.28, -58.12)
CIE-LCHlch(30.75, 66.49, 299.05°)
OKLaboklab(41.61% 0.0095 -0.1677)
OKLCHoklch(41.61% 0.168 273.2)
XYZxyz(9.7185, 6.5474, 36.3416)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333BA5 #A59D33
analogous
#3374A5 #333BA5 #6433A5
triadic
#333BA5 #A5333B #3BA533
tetradic
#333BA5 #A53374 #A59D33 #33A564
square
#333BA5 #A53374 #A59D33 #33A564
split-complementary
#333BA5 #A56433 #74A533
monochromatic
#161A48 #252A76 #333BA5 #4D56C8 #7C82D6

Accessibility & contrast

On white

9.09
#333BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#333BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333BA5
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333BA5#FFFFFF#000000##FFFFFF
##333BA51.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #333ba5;
/* rgb */ color: rgb(51, 59, 165);
/* oklch */ color: oklch(41.6% 0.168 273.2);
Tailwind
colors: {
  custom: {
    50: '#7a71c1',
    500: '#333ba5',
    950: '#000000',
  },
}
SCSS
$custom: #333ba5;
$custom-light: #7a71c1;
$custom-dark: #000000;
JSON
{
  "hex": "#333ba5",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 165
  },
  "hsl": {
    "h": 235.789,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41608,
    "c": 0.16801,
    "h": 273.2
  },
  "luminance": 0.06548
}

Semantic roles & 50–950 ramp

primary
#333BA5
secondary
#BFBA75
accent
#D24CDC
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #333BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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