#4238CF#4238CF

#4238CF is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 46.1% C 0.221 H 276.2°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#4238CF
RGBrgb(66, 56, 207)
HSLhsl(244, 61%, 52%)
HSVhsv(244, 73%, 81%)
CMYKcmyk(68.1%, 72.9%, 0%, 18.8%)
CIE-LABlab(34.98, 49.96, -75.95)
CIE-LCHlch(34.98, 90.91, 303.34°)
OKLaboklab(46.1% 0.024 -0.2195)
OKLCHoklch(46.1% 0.221 276.2)
XYZxyz(14.9197, 8.4902, 59.8719)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238CF #C5CF38
analogous
#3879CF #4238CF #8E38CF
triadic
#4238CF #CF4238 #38CF42
tetradic
#4238CF #CF3879 #C5CF38 #38CF8E
square
#4238CF #CF3879 #C5CF38 #38CF8E
split-complementary
#4238CF #CF8E38 #79CF38
monochromatic
#211B71 #2F27A3 #4238CF #7169DB #A09BE7

Accessibility & contrast

On white

7.78
#4238CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4238CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238CF
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238CF#FFFFFF#000000##FFFFFF
##4238CF1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D3
Deuteranopia (green-blind)
#004CCC
Tritanopia (blue-blind)
#006380
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4238cf;
/* rgb */ color: rgb(66, 56, 207);
/* oklch */ color: oklch(46.1% 0.221 276.2);
Tailwind
colors: {
  custom: {
    50: '#8971df',
    500: '#4238cf',
    950: '#000000',
  },
}
SCSS
$custom: #4238cf;
$custom-light: #8971df;
$custom-dark: #000000;
JSON
{
  "hex": "#4238cf",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 243.974,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.461,
    "c": 0.22079,
    "h": 276.2
  },
  "luminance": 0.08492
}

Semantic roles & 50–950 ramp

primary
#4238CF
secondary
#CED390
accent
#E444DA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4238CF

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

Preview Lab → · Contrast checker → · Palette generator →

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