#2D42A3#2D42A3

#2D42A3 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.158 H 269.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#2D42A3
RGBrgb(45, 66, 163)
HSLhsl(229, 57%, 41%)
HSVhsv(229, 72%, 64%)
CMYKcmyk(72.4%, 59.5%, 0%, 36.1%)
CIE-LABlab(32.03, 26.15, -54.85)
CIE-LCHlch(32.03, 60.77, 295.49°)
OKLaboklab(42.41% -0.0023 -0.1582)
OKLCHoklch(42.41% 0.158 269.2)
XYZxyz(9.6390, 7.0977, 35.5052)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42A3 #A38E2D
analogous
#2D7DA3 #2D42A3 #532DA3
triadic
#2D42A3 #A32D42 #42A32D
tetradic
#2D42A3 #A32D7D #A38E2D #2DA353
square
#2D42A3 #A32D7D #A38E2D #2DA353
split-complementary
#2D42A3 #A3532D #7DA32D
monochromatic
#131B43 #202F73 #2D42A3 #425BCB #7284D8

Accessibility & contrast

On white

8.68
#2D42A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2D42A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D42A3
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42A3#FFFFFF#000000##FFFFFF
##2D42A31.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d42a3;
/* rgb */ color: rgb(45, 66, 163);
/* oklch */ color: oklch(42.4% 0.158 269.2);
Tailwind
colors: {
  custom: {
    50: '#7676bf',
    500: '#2d42a3',
    950: '#000000',
  },
}
SCSS
$custom: #2d42a3;
$custom-light: #7676bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42a3",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 229.322,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42407,
    "c": 0.15824,
    "h": 269.2
  },
  "luminance": 0.07099
}

Semantic roles & 50–950 ramp

primary
#2D42A3
secondary
#C0B16C
accent
#C548E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D42A3

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

Preview Lab → · Contrast checker → · Palette generator →

#2D42A3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva