#333EAF#333EAF

#333EAF is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.0% C 0.178 H 272.1°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#333EAF
RGBrgb(51, 62, 175)
HSLhsl(235, 55%, 44%)
HSVhsv(235, 71%, 69%)
CMYKcmyk(70.9%, 64.6%, 0%, 31.4%)
CIE-LABlab(32.35, 33.93, -61.50)
CIE-LCHlch(32.35, 70.23, 298.88°)
OKLaboklab(43.05% 0.0067 -0.1776)
OKLCHoklch(43.05% 0.178 272.1)
XYZxyz(10.8231, 7.2431, 41.3768)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333EAF #AFA433
analogous
#337CAF #333EAF #6633AF
triadic
#333EAF #AF333E #3EAF33
tetradic
#333EAF #AF337C #AFA433 #33AF66
square
#333EAF #AF337C #AFA433 #33AF66
split-complementary
#333EAF #AF6633 #7CAF33
monochromatic
#171C50 #252D80 #333EAF #525DCD #828ADB

Accessibility & contrast

On white

8.58
#333EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#333EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333EAF
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333EAF#FFFFFF#000000##FFFFFF
##333EAF1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #333eaf;
/* rgb */ color: rgb(51, 62, 175);
/* oklch */ color: oklch(43.0% 0.178 272.1);
Tailwind
colors: {
  custom: {
    50: '#7c73c8',
    500: '#333eaf',
    950: '#000000',
  },
}
SCSS
$custom: #333eaf;
$custom-light: #7c73c8;
$custom-dark: #000000;
JSON
{
  "hex": "#333eaf",
  "rgb": {
    "r": 51,
    "g": 62,
    "b": 175
  },
  "hsl": {
    "h": 234.677,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4305,
    "c": 0.17773,
    "h": 272.1
  },
  "luminance": 0.07244
}

Semantic roles & 50–950 ramp

primary
#333EAF
secondary
#C4BD7A
accent
#D14ADE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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