#4238D2#4238D2

#4238D2 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.4% C 0.224 H 276.0°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#4238D2
RGBrgb(66, 56, 210)
HSLhsl(244, 63%, 52%)
HSVhsv(244, 73%, 82%)
CMYKcmyk(68.6%, 73.3%, 0%, 17.6%)
CIE-LABlab(35.28, 50.90, -77.20)
CIE-LCHlch(35.28, 92.47, 303.40°)
OKLaboklab(46.4% 0.0234 -0.2231)
OKLCHoklch(46.4% 0.224 276)
XYZxyz(15.2900, 8.6383, 61.8219)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238D2 #C8D238
analogous
#387BD2 #4238D2 #8F38D2
triadic
#4238D2 #D24238 #38D242
tetradic
#4238D2 #D2387B #C8D238 #38D28F
square
#4238D2 #D2387B #C8D238 #38D28F
split-complementary
#4238D2 #D28F38 #7BD238
monochromatic
#201A75 #2E26A7 #4238D2 #716ADD #A19CE9

Accessibility & contrast

On white

7.70
#4238D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4238D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238D2
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238D2#FFFFFF#000000##FFFFFF
##4238D21.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD6
Deuteranopia (green-blind)
#004CCF
Tritanopia (blue-blind)
#006482
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4238d2;
/* rgb */ color: rgb(66, 56, 210);
/* oklch */ color: oklch(46.4% 0.224 276.0);
Tailwind
colors: {
  custom: {
    50: '#8a71e1',
    500: '#4238d2',
    950: '#000000',
  },
}
SCSS
$custom: #4238d2;
$custom-light: #8a71e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4238d2",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 243.896,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.46397,
    "c": 0.22436,
    "h": 276
  },
  "luminance": 0.0864
}

Semantic roles & 50–950 ramp

primary
#4238D2
secondary
#D0D591
accent
#E642DB
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0D0815
muted
#7E7B84

Preview Lab

Preview with #4238D2

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

Preview Lab → · Contrast checker → · Palette generator →

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