#4238A2#4238A2

#4238A2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.9% C 0.164 H 280.9°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4238A2
RGBrgb(66, 56, 162)
HSLhsl(246, 49%, 43%)
HSVhsv(246, 65%, 64%)
CMYKcmyk(59.3%, 65.4%, 0%, 36.5%)
CIE-LABlab(30.87, 35.45, -56.09)
CIE-LCHlch(30.87, 66.35, 302.29°)
OKLaboklab(41.89% 0.031 -0.1614)
OKLCHoklch(41.89% 0.164 280.9)
XYZxyz(10.1805, 6.5945, 34.9118)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4238A2 #98A238
analogous
#3863A2 #4238A2 #7738A2
triadic
#4238A2 #A24238 #38A242
tetradic
#4238A2 #A23863 #98A238 #38A277
square
#4238A2 #A23863 #98A238 #38A277
split-complementary
#4238A2 #A27738 #63A238
monochromatic
#1D1947 #2F2875 #4238A2 #5E53C4 #8981D3

Accessibility & contrast

On white

9.06
#4238A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4238A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4238A2
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4238A2#FFFFFF#000000##FFFFFF
##4238A21.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#035368
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4238a2;
/* rgb */ color: rgb(66, 56, 162);
/* oklch */ color: oklch(41.9% 0.164 280.9);
Tailwind
colors: {
  custom: {
    50: '#816fbe',
    500: '#4238a2',
    950: '#000000',
  },
}
SCSS
$custom: #4238a2;
$custom-light: #816fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4238a2",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 245.66,
    "s": 48.624,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41889,
    "c": 0.1643,
    "h": 280.9
  },
  "luminance": 0.06595
}

Semantic roles & 50–950 ramp

primary
#4238A2
secondary
#B7BD79
accent
#D850CB
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #4238A2

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

Preview Lab → · Contrast checker → · Palette generator →

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