#4238CD#4238CD

#4238CD is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.9% C 0.218 H 276.4°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#4238CD
RGBrgb(66, 56, 205)
HSLhsl(244, 60%, 51%)
HSVhsv(244, 73%, 80%)
CMYKcmyk(67.8%, 72.7%, 0%, 19.6%)
CIE-LABlab(34.79, 49.33, -75.11)
CIE-LCHlch(34.79, 89.86, 303.30°)
OKLaboklab(45.9% 0.0244 -0.217)
OKLCHoklch(45.9% 0.218 276.4)
XYZxyz(14.6768, 8.3931, 58.5923)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238CD #C3CD38
analogous
#3878CD #4238CD #8C38CD
triadic
#4238CD #CD4238 #38CD42
tetradic
#4238CD #CD3878 #C3CD38 #38CD8C
square
#4238CD #CD3878 #C3CD38 #38CD8C
split-complementary
#4238CD #CD8C38 #78CD38
monochromatic
#211C6F #3028A0 #4238CD #7069D9 #9F9AE6

Accessibility & contrast

On white

7.84
#4238CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4238CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238CD
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238CD#FFFFFF#000000##FFFFFF
##4238CD1.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)
#0058D1
Deuteranopia (green-blind)
#004BCA
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4238cd;
/* rgb */ color: rgb(66, 56, 205);
/* oklch */ color: oklch(45.9% 0.218 276.4);
Tailwind
colors: {
  custom: {
    50: '#8971de',
    500: '#4238cd',
    950: '#000000',
  },
}
SCSS
$custom: #4238cd;
$custom-light: #8971de;
$custom-dark: #000000;
JSON
{
  "hex": "#4238cd",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 244.027,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.45903,
    "c": 0.21841,
    "h": 276.4
  },
  "luminance": 0.08394
}

Semantic roles & 50–950 ramp

primary
#4238CD
secondary
#CDD18F
accent
#E345D8
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4238CD

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

Preview Lab → · Contrast checker → · Palette generator →

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