#2D42A5#2D42A5

#2D42A5 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.6% C 0.161 H 269.2°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#2D42A5
RGBrgb(45, 66, 165)
HSLhsl(230, 57%, 41%)
HSVhsv(230, 73%, 65%)
CMYKcmyk(72.7%, 60%, 0%, 35.3%)
CIE-LABlab(32.19, 26.90, -55.79)
CIE-LCHlch(32.19, 61.94, 295.74°)
OKLaboklab(42.58% -0.0022 -0.161)
OKLCHoklch(42.58% 0.161 269.2)
XYZxyz(9.8196, 7.1699, 36.4564)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42A5 #A5902D
analogous
#2D7EA5 #2D42A5 #542DA5
triadic
#2D42A5 #A52D42 #42A52D
tetradic
#2D42A5 #A52D7E #A5902D #2DA554
square
#2D42A5 #A52D7E #A5902D #2DA554
split-complementary
#2D42A5 #A5542D #7EA52D
monochromatic
#131C45 #202F75 #2D42A5 #435BCC #7385D9

Accessibility & contrast

On white

8.63
#2D42A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2D42A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D42A5
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42A5#FFFFFF#000000##FFFFFF
##2D42A51.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2d42a5;
/* rgb */ color: rgb(45, 66, 165);
/* oklch */ color: oklch(42.6% 0.161 269.2);
Tailwind
colors: {
  custom: {
    50: '#7776c0',
    500: '#2d42a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d42a5;
$custom-light: #7776c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42a5",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 229.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42579,
    "c": 0.161,
    "h": 269.2
  },
  "luminance": 0.07171
}

Semantic roles & 50–950 ramp

primary
#2D42A5
secondary
#C1B26D
accent
#C647E0
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2D42A5

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

Preview Lab → · Contrast checker → · Palette generator →

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