#42399C#42399C

#42399C is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.5% C 0.155 H 281.4°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#42399C
RGBrgb(66, 57, 156)
HSLhsl(245, 46%, 42%)
HSVhsv(245, 63%, 61%)
CMYKcmyk(57.7%, 63.5%, 0%, 38.8%)
CIE-LABlab(30.60, 32.86, -52.88)
CIE-LCHlch(30.60, 62.26, 301.85°)
OKLaboklab(41.54% 0.0305 -0.1519)
OKLCHoklch(41.54% 0.155 281.4)
XYZxyz(9.7088, 6.4842, 32.1860)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42399C #939C39
analogous
#39619C #42399C #74399C
triadic
#42399C #9C4239 #399C42
tetradic
#42399C #9C3961 #939C39 #399C74
square
#42399C #9C3961 #939C39 #399C74
split-complementary
#42399C #9C7439 #619C39
monochromatic
#1C1842 #2F296F #42399C #5C52C0 #877FD0

Accessibility & contrast

On white

9.14
#42399C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#42399C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42399C
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42399C#FFFFFF#000000##FFFFFF
##42399C1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#125165
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #42399c;
/* rgb */ color: rgb(66, 57, 156);
/* oklch */ color: oklch(41.5% 0.155 281.4);
Tailwind
colors: {
  custom: {
    50: '#7f70ba',
    500: '#42399c',
    950: '#000000',
  },
}
SCSS
$custom: #42399c;
$custom-light: #7f70ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42399c",
  "rgb": {
    "r": 66,
    "g": 57,
    "b": 156
  },
  "hsl": {
    "h": 245.455,
    "s": 46.479,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41542,
    "c": 0.15498,
    "h": 281.4
  },
  "luminance": 0.06485
}

Semantic roles & 50–950 ramp

primary
#42399C
secondary
#B4BA77
accent
#D652CA
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #42399C

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

Preview Lab → · Contrast checker → · Palette generator →

#42399C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva