#4231A2#4231A2

#4231A2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.8% C 0.173 H 282.4°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4231A2
RGBrgb(66, 49, 162)
HSLhsl(249, 54%, 41%)
HSVhsv(249, 70%, 64%)
CMYKcmyk(59.3%, 69.8%, 0%, 36.5%)
CIE-LABlab(29.32, 39.63, -58.62)
CIE-LCHlch(29.32, 70.76, 304.07°)
OKLaboklab(40.77% 0.0371 -0.1688)
OKLCHoklch(40.77% 0.173 282.4)
XYZxyz(9.8646, 5.9629, 34.8065)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4231A2 #91A231
analogous
#3158A2 #4231A2 #7B31A2
triadic
#4231A2 #A24231 #31A242
tetradic
#4231A2 #A23158 #91A231 #31A27B
square
#4231A2 #A23158 #91A231 #31A27B
split-complementary
#4231A2 #A27B31 #58A231
monochromatic
#1C1544 #2F2373 #4231A2 #5C48C8 #8677D6

Accessibility & contrast

On white

9.58
#4231A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4231A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4231A2
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4231A2#FFFFFF#000000##FFFFFF
##4231A21.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#054F65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4231a2;
/* rgb */ color: rgb(66, 49, 162);
/* oklch */ color: oklch(40.8% 0.173 282.4);
Tailwind
colors: {
  custom: {
    50: '#816bbf',
    500: '#4231a2',
    950: '#000000',
  },
}
SCSS
$custom: #4231a2;
$custom-light: #816bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#4231a2",
  "rgb": {
    "r": 66,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 249.027,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40772,
    "c": 0.17282,
    "h": 282.4
  },
  "luminance": 0.05964
}

Semantic roles & 50–950 ramp

primary
#4231A2
secondary
#B3BE71
accent
#DD4BC7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #4231A2

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

Preview Lab → · Contrast checker → · Palette generator →

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