#4245AC#4245AC

#4245AC is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.0% C 0.161 H 276.5°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#4245AC
RGBrgb(66, 69, 172)
HSLhsl(238, 45%, 47%)
HSVhsv(238, 62%, 67%)
CMYKcmyk(61.6%, 59.9%, 0%, 32.5%)
CIE-LABlab(34.79, 30.66, -55.70)
CIE-LCHlch(34.79, 63.58, 298.83°)
OKLaboklab(45.02% 0.0183 -0.1601)
OKLCHoklch(45.02% 0.161 276.5)
XYZxyz(11.8189, 8.3921, 40.0188)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4245AC #ACA942
analogous
#427AAC #4245AC #7442AC
triadic
#4245AC #AC4245 #45AC42
tetradic
#4245AC #AC427A #ACA942 #42AC74
square
#4245AC #AC427A #ACA942 #42AC74
split-complementary
#4245AC #AC7442 #7AAC42
monochromatic
#202254 #313380 #4245AC #6769C5 #9395D6

Accessibility & contrast

On white

7.84
#4245AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4245AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4245AC
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4245AC#FFFFFF#000000##FFFFFF
##4245AC1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#004DAA
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4245ac;
/* rgb */ color: rgb(66, 69, 172);
/* oklch */ color: oklch(45.0% 0.161 276.5);
Tailwind
colors: {
  custom: {
    50: '#8178c5',
    500: '#4245ac',
    950: '#000000',
  },
}
SCSS
$custom: #4245ac;
$custom-light: #8178c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4245ac",
  "rgb": {
    "r": 66,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 238.302,
    "s": 44.538,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45016,
    "c": 0.16119,
    "h": 276.5
  },
  "luminance": 0.08393
}

Semantic roles & 50–950 ramp

primary
#4245AC
secondary
#C1BF89
accent
#D154D4
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #4245AC

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

Preview Lab → · Contrast checker → · Palette generator →

#4245AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva