#4238AC#4238AC

#4238AC is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.8% C 0.177 H 279.7°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#4238AC
RGBrgb(66, 56, 172)
HSLhsl(245, 51%, 45%)
HSVhsv(245, 67%, 67%)
CMYKcmyk(61.6%, 67.4%, 0%, 32.5%)
CIE-LABlab(31.73, 38.72, -60.69)
CIE-LCHlch(31.73, 71.99, 302.54°)
OKLaboklab(42.78% 0.0298 -0.1749)
OKLCHoklch(42.78% 0.177 279.7)
XYZxyz(11.1050, 6.9643, 39.7808)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238AC #A2AC38
analogous
#3868AC #4238AC #7C38AC
triadic
#4238AC #AC4238 #38AC42
tetradic
#4238AC #AC3868 #A2AC38 #38AC7C
square
#4238AC #AC3868 #A2AC38 #38AC7C
split-complementary
#4238AC #AC7C38 #68AC38
monochromatic
#1F1A50 #30297E #4238AC #6258C9 #8E87D8

Accessibility & contrast

On white

8.78
#4238AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4238AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238AC
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238AC#FFFFFF#000000##FFFFFF
##4238AC1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#00566D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4238ac;
/* rgb */ color: rgb(66, 56, 172);
/* oklch */ color: oklch(42.8% 0.177 279.7);
Tailwind
colors: {
  custom: {
    50: '#8270c6',
    500: '#4238ac',
    950: '#000000',
  },
}
SCSS
$custom: #4238ac;
$custom-light: #8270c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4238ac",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 245.172,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42778,
    "c": 0.17739,
    "h": 279.7
  },
  "luminance": 0.06965
}

Semantic roles & 50–950 ramp

primary
#4238AC
secondary
#BCC27E
accent
#DA4DCE
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4238AC

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

Preview Lab → · Contrast checker → · Palette generator →

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