#3338AF#3338AF

#3338AF is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.0% C 0.185 H 273.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#3338AF
RGBrgb(51, 56, 175)
HSLhsl(238, 55%, 44%)
HSVhsv(238, 71%, 69%)
CMYKcmyk(70.9%, 68%, 0%, 31.4%)
CIE-LABlab(30.94, 37.69, -63.81)
CIE-LCHlch(30.94, 74.11, 300.57°)
OKLaboklab(42.02% 0.0107 -0.1844)
OKLCHoklch(42.02% 0.185 273.3)
XYZxyz(10.5147, 6.6263, 41.2740)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338AF #AFAA33
analogous
#3376AF #3338AF #6C33AF
triadic
#3338AF #AF3338 #38AF33
tetradic
#3338AF #AF3376 #AFAA33 #33AF6C
square
#3338AF #AF3376 #AFAA33 #33AF6C
split-complementary
#3338AF #AF6C33 #76AF33
monochromatic
#171A50 #252980 #3338AF #5257CD #8285DB

Accessibility & contrast

On white

9.03
#3338AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3338AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338AF
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338AF#FFFFFF#000000##FFFFFF
##3338AF1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3338af;
/* rgb */ color: rgb(51, 56, 175);
/* oklch */ color: oklch(42.0% 0.185 273.3);
Tailwind
colors: {
  custom: {
    50: '#7c6fc8',
    500: '#3338af',
    950: '#000000',
  },
}
SCSS
$custom: #3338af;
$custom-light: #7c6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#3338af",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 237.581,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4202,
    "c": 0.18473,
    "h": 273.3
  },
  "luminance": 0.06627
}

Semantic roles & 50–950 ramp

primary
#3338AF
secondary
#C4C17A
accent
#D84ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3338AF

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

Preview Lab → · Contrast checker → · Palette generator →

#3338AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva