#42309E#42309E

#42309E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.169 H 283.2°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#42309E
RGBrgb(66, 48, 158)
HSLhsl(250, 53%, 40%)
HSVhsv(250, 70%, 62%)
CMYKcmyk(58.2%, 69.6%, 0%, 38%)
CIE-LABlab(28.75, 38.95, -57.12)
CIE-LCHlch(28.75, 69.14, 304.29°)
OKLaboklab(40.25% 0.0387 -0.1644)
OKLCHoklch(40.25% 0.169 283.2)
XYZxyz(9.4734, 5.7402, 32.9499)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42309E #8C9E30
analogous
#30559E #42309E #79309E
triadic
#42309E #9E4230 #309E42
tetradic
#42309E #9E3055 #8C9E30 #309E79
square
#42309E #9E3055 #8C9E30 #309E79
split-complementary
#42309E #9E7930 #559E30
monochromatic
#1B1340 #2E226F #42309E #5A45C6 #8474D5

Accessibility & contrast

On white

9.78
#42309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#42309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42309E
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42309E#FFFFFF#000000##FFFFFF
##42309E1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#104D63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #42309e;
/* rgb */ color: rgb(66, 48, 158);
/* oklch */ color: oklch(40.3% 0.169 283.2);
Tailwind
colors: {
  custom: {
    50: '#816abc',
    500: '#42309e',
    950: '#000000',
  },
}
SCSS
$custom: #42309e;
$custom-light: #816abc;
$custom-dark: #000000;
JSON
{
  "hex": "#42309e",
  "rgb": {
    "r": 66,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 249.818,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40252,
    "c": 0.16889,
    "h": 283.2
  },
  "luminance": 0.05741
}

Semantic roles & 50–950 ramp

primary
#42309E
secondary
#B0BD6D
accent
#DD4BC5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #42309E

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

Preview Lab → · Contrast checker → · Palette generator →

#42309E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva