#333FA5#333FA5

#333FA5 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.163 H 272.2°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#333FA5
RGBrgb(51, 63, 165)
HSLhsl(234, 53%, 42%)
HSVhsv(234, 69%, 65%)
CMYKcmyk(69.1%, 61.8%, 0%, 35.3%)
CIE-LABlab(31.75, 29.69, -56.50)
CIE-LCHlch(31.75, 63.82, 297.72°)
OKLaboklab(42.34% 0.0063 -0.1629)
OKLCHoklch(42.34% 0.163 272.2)
XYZxyz(9.9320, 6.9745, 36.4128)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333FA5 #A59933
analogous
#3378A5 #333FA5 #6033A5
triadic
#333FA5 #A5333F #3FA533
tetradic
#333FA5 #A53378 #A59933 #33A560
square
#333FA5 #A53378 #A59933 #33A560
split-complementary
#333FA5 #A56033 #78A533
monochromatic
#161B48 #252D76 #333FA5 #4D5AC8 #7C85D6

Accessibility & contrast

On white

8.77
#333FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#333FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333FA5
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333FA5#FFFFFF#000000##FFFFFF
##333FA51.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #333fa5;
/* rgb */ color: rgb(51, 63, 165);
/* oklch */ color: oklch(42.3% 0.163 272.2);
Tailwind
colors: {
  custom: {
    50: '#7974c1',
    500: '#333fa5',
    950: '#000000',
  },
}
SCSS
$custom: #333fa5;
$custom-light: #7974c1;
$custom-dark: #000000;
JSON
{
  "hex": "#333fa5",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 165
  },
  "hsl": {
    "h": 233.684,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4234,
    "c": 0.16306,
    "h": 272.2
  },
  "luminance": 0.06975
}

Semantic roles & 50–950 ramp

primary
#333FA5
secondary
#BFB775
accent
#CD4CDC
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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