#3345A8#3345A8

#3345A8 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.7% C 0.160 H 270.5°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#3345A8
RGBrgb(51, 69, 168)
HSLhsl(231, 53%, 43%)
HSVhsv(231, 70%, 66%)
CMYKcmyk(69.6%, 58.9%, 0%, 34.1%)
CIE-LABlab(33.53, 26.85, -55.39)
CIE-LCHlch(33.53, 61.56, 295.86°)
OKLaboklab(43.74% 0.0015 -0.1596)
OKLCHoklch(43.74% 0.16 270.5)
XYZxyz(10.5588, 7.7862, 37.9846)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3345A8 #A89633
analogous
#3380A8 #3345A8 #5B33A8
triadic
#3345A8 #A83345 #45A833
tetradic
#3345A8 #A83380 #A89633 #33A85B
square
#3345A8 #A83380 #A89633 #33A85B
split-complementary
#3345A8 #A85B33 #80A833
monochromatic
#161E4A #253279 #3345A8 #4F62C9 #7E8CD8

Accessibility & contrast

On white

8.21
#3345A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3345A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3345A8
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3345A8#FFFFFF#000000##FFFFFF
##3345A81.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#005D6F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3345a8;
/* rgb */ color: rgb(51, 69, 168);
/* oklch */ color: oklch(43.7% 0.160 270.5);
Tailwind
colors: {
  custom: {
    50: '#7a78c3',
    500: '#3345a8',
    950: '#000000',
  },
}
SCSS
$custom: #3345a8;
$custom-light: #7a78c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3345a8",
  "rgb": {
    "r": 51,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 230.769,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4374,
    "c": 0.15963,
    "h": 270.5
  },
  "luminance": 0.07787
}

Semantic roles & 50–950 ramp

primary
#3345A8
secondary
#C1B576
accent
#C64BDD
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #3345A8

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

Preview Lab → · Contrast checker → · Palette generator →

#3345A8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva