#3845AF#3845AF

#3845AF is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.6% C 0.168 H 272.3°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#3845AF
RGBrgb(56, 69, 175)
HSLhsl(233, 52%, 45%)
HSVhsv(233, 68%, 69%)
CMYKcmyk(68%, 60.6%, 0%, 31.4%)
CIE-LABlab(34.38, 30.11, -58.18)
CIE-LCHlch(34.38, 65.51, 297.37°)
OKLaboklab(44.62% 0.0068 -0.1677)
OKLCHoklch(44.62% 0.168 272.3)
XYZxyz(11.4943, 8.1911, 41.5244)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3845AF #AFA238
analogous
#3881AF #3845AF #6638AF
triadic
#3845AF #AF3845 #45AF38
tetradic
#3845AF #AF3881 #AFA238 #38AF66
square
#3845AF #AF3881 #AFA238 #38AF66
split-complementary
#3845AF #AF6638 #81AF38
monochromatic
#1A2052 #293381 #3845AF #5A66CA #8891D9

Accessibility & contrast

On white

7.96
#3845AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3845AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3845AF
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3845AF#FFFFFF#000000##FFFFFF
##3845AF1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B2
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3845af;
/* rgb */ color: rgb(56, 69, 175);
/* oklch */ color: oklch(44.6% 0.168 272.3);
Tailwind
colors: {
  custom: {
    50: '#7d78c8',
    500: '#3845af',
    950: '#000000',
  },
}
SCSS
$custom: #3845af;
$custom-light: #7d78c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3845af",
  "rgb": {
    "r": 56,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 233.445,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44618,
    "c": 0.16784,
    "h": 272.3
  },
  "luminance": 0.08192
}

Semantic roles & 50–950 ramp

primary
#3845AF
secondary
#C3BC80
accent
#CB4DDB
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3845AF

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

Preview Lab → · Contrast checker → · Palette generator →

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