#333BAF#333BAF

#333BAF is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.181 H 272.8°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#333BAF
RGBrgb(51, 59, 175)
HSLhsl(236, 55%, 44%)
HSVhsv(236, 71%, 69%)
CMYKcmyk(70.9%, 66.3%, 0%, 31.4%)
CIE-LABlab(31.64, 35.83, -62.67)
CIE-LCHlch(31.64, 72.19, 299.75°)
OKLaboklab(42.53% 0.0087 -0.1811)
OKLCHoklch(42.53% 0.181 272.8)
XYZxyz(10.6645, 6.9258, 41.3239)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333BAF #AFA733
analogous
#3379AF #333BAF #6933AF
triadic
#333BAF #AF333B #3BAF33
tetradic
#333BAF #AF3379 #AFA733 #33AF69
square
#333BAF #AF3379 #AFA733 #33AF69
split-complementary
#333BAF #AF6933 #79AF33
monochromatic
#171B50 #252B80 #333BAF #525ACD #8288DB

Accessibility & contrast

On white

8.80
#333BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#333BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333BAF
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333BAF#FFFFFF#000000##FFFFFF
##333BAF1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333baf;
/* rgb */ color: rgb(51, 59, 175);
/* oklch */ color: oklch(42.5% 0.181 272.8);
Tailwind
colors: {
  custom: {
    50: '#7c71c8',
    500: '#333baf',
    950: '#000000',
  },
}
SCSS
$custom: #333baf;
$custom-light: #7c71c8;
$custom-dark: #000000;
JSON
{
  "hex": "#333baf",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 175
  },
  "hsl": {
    "h": 236.129,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42526,
    "c": 0.18128,
    "h": 272.8
  },
  "luminance": 0.06927
}

Semantic roles & 50–950 ramp

primary
#333BAF
secondary
#C4BF7A
accent
#D54ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #333BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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