#4245C6#4245C6

#4245C6 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.2% C 0.196 H 274.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#4245C6
RGBrgb(66, 69, 198)
HSLhsl(239, 54%, 52%)
HSVhsv(239, 67%, 78%)
CMYKcmyk(66.7%, 65.2%, 0%, 22.4%)
CIE-LABlab(36.91, 39.49, -67.55)
CIE-LCHlch(36.91, 78.25, 300.31°)
OKLaboklab(47.24% 0.0168 -0.1949)
OKLCHoklch(47.24% 0.196 274.9)
XYZxyz(14.5646, 9.4904, 54.4794)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4245C6 #C6C342
analogous
#4287C6 #4245C6 #8142C6
triadic
#4245C6 #C64245 #45C642
tetradic
#4245C6 #C64287 #C6C342 #42C681
square
#4245C6 #C64287 #C6C342 #42C681
split-complementary
#4245C6 #C68142 #87C642
monochromatic
#21236D #2F319C #4245C6 #7173D4 #A0A2E2

Accessibility & contrast

On white

7.25
#4245C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4245C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4245C6
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4245C6#FFFFFF#000000##FFFFFF
##4245C61.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCA
Deuteranopia (green-blind)
#0051C4
Tritanopia (blue-blind)
#00677F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4245c6;
/* rgb */ color: rgb(66, 69, 198);
/* oklch */ color: oklch(47.2% 0.196 274.9);
Tailwind
colors: {
  custom: {
    50: '#8679d8',
    500: '#4245c6',
    950: '#000000',
  },
}
SCSS
$custom: #4245c6;
$custom-light: #8679d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4245c6",
  "rgb": {
    "r": 66,
    "g": 69,
    "b": 198
  },
  "hsl": {
    "h": 238.636,
    "s": 53.659,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47236,
    "c": 0.19566,
    "h": 274.9
  },
  "luminance": 0.09492
}

Semantic roles & 50–950 ramp

primary
#4245C6
secondary
#CFCE95
accent
#DA4BDD
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #4245C6

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

Preview Lab → · Contrast checker → · Palette generator →

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