#42309D#42309D

#42309D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.168 H 283.4°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#42309D
RGBrgb(66, 48, 157)
HSLhsl(250, 53%, 40%)
HSVhsv(250, 69%, 62%)
CMYKcmyk(58%, 69.4%, 0%, 38.4%)
CIE-LABlab(28.66, 38.63, -56.66)
CIE-LCHlch(28.66, 68.58, 304.29°)
OKLaboklab(40.16% 0.0388 -0.1631)
OKLCHoklch(40.16% 0.168 283.4)
XYZxyz(9.3877, 5.7059, 32.4984)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42309D #8B9D30
analogous
#30559D #42309D #78309D
triadic
#42309D #9D4230 #309D42
tetradic
#42309D #9D3055 #8B9D30 #309D78
square
#42309D #9D3055 #8B9D30 #309D78
split-complementary
#42309D #9D7830 #559D30
monochromatic
#1B133F #2E226E #42309D #5A44C6 #8373D4

Accessibility & contrast

On white

9.81
#42309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#42309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42309D
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42309D#FFFFFF#000000##FFFFFF
##42309D1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#124C62
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #42309d;
/* rgb */ color: rgb(66, 48, 157);
/* oklch */ color: oklch(40.2% 0.168 283.4);
Tailwind
colors: {
  custom: {
    50: '#806abb',
    500: '#42309d',
    950: '#000000',
  },
}
SCSS
$custom: #42309d;
$custom-light: #806abb;
$custom-dark: #000000;
JSON
{
  "hex": "#42309d",
  "rgb": {
    "r": 66,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 249.908,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4016,
    "c": 0.16762,
    "h": 283.4
  },
  "luminance": 0.05706
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42309D

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

Preview Lab → · Contrast checker → · Palette generator →

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