#4238C2#4238C2

#4238C2 is a dark, highly saturated blue. Relative luminance 0.079; OKLCH L 44.8% C 0.205 H 277.4°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#4238C2
RGBrgb(66, 56, 194)
HSLhsl(244, 55%, 49%)
HSVhsv(244, 71%, 76%)
CMYKcmyk(66%, 71.1%, 0%, 23.9%)
CIE-LABlab(33.73, 45.84, -70.43)
CIE-LCHlch(33.73, 84.03, 303.06°)
OKLaboklab(44.83% 0.0264 -0.2034)
OKLCHoklch(44.83% 0.205 277.4)
XYZxyz(13.3954, 7.8805, 51.8436)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238C2 #B8C238
analogous
#3873C2 #4238C2 #8738C2
triadic
#4238C2 #C24238 #38C242
tetradic
#4238C2 #C23873 #B8C238 #38C287
square
#4238C2 #C23873 #B8C238 #38C287
split-complementary
#4238C2 #C28738 #73C238
monochromatic
#221D63 #322A93 #4238C2 #6D65D2 #9A94E0

Accessibility & contrast

On white

8.15
#4238C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4238C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238C2
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238C2#FFFFFF#000000##FFFFFF
##4238C21.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#0049BF
Tritanopia (blue-blind)
#005E79
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4238c2;
/* rgb */ color: rgb(66, 56, 194);
/* oklch */ color: oklch(44.8% 0.205 277.4);
Tailwind
colors: {
  custom: {
    50: '#8770d6',
    500: '#4238c2',
    950: '#000000',
  },
}
SCSS
$custom: #4238c2;
$custom-light: #8770d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4238c2",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 244.348,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.44832,
    "c": 0.20508,
    "h": 277.4
  },
  "luminance": 0.07882
}

Semantic roles & 50–950 ramp

primary
#4238C2
secondary
#C7CB8A
accent
#DF49D4
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4238C2

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

Preview Lab → · Contrast checker → · Palette generator →

#4238C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva