#2D42A2#2D42A2

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

Color values

HEX#2D42A2
RGBrgb(45, 66, 162)
HSLhsl(229, 57%, 41%)
HSVhsv(229, 72%, 64%)
CMYKcmyk(72.2%, 59.3%, 0%, 36.5%)
CIE-LABlab(31.95, 25.77, -54.38)
CIE-LCHlch(31.95, 60.18, 295.36°)
OKLaboklab(42.32% -0.0023 -0.1568)
OKLCHoklch(42.32% 0.157 269.2)
XYZxyz(9.5497, 7.0620, 35.0352)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D42A2 #A28D2D
analogous
#2D7CA2 #2D42A2 #522DA2
triadic
#2D42A2 #A22D42 #42A22D
tetradic
#2D42A2 #A22D7C #A28D2D #2DA252
square
#2D42A2 #A22D7C #A28D2D #2DA252
split-complementary
#2D42A2 #A2522D #7CA22D
monochromatic
#121B42 #202E72 #2D42A2 #425ACA #7284D8

Accessibility & contrast

On white

8.70
#2D42A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2D42A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D42A2
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D42A2#FFFFFF#000000##FFFFFF
##2D42A21.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d42a2;
/* rgb */ color: rgb(45, 66, 162);
/* oklch */ color: oklch(42.3% 0.157 269.2);
Tailwind
colors: {
  custom: {
    50: '#7676be',
    500: '#2d42a2',
    950: '#000000',
  },
}
SCSS
$custom: #2d42a2;
$custom-light: #7676be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d42a2",
  "rgb": {
    "r": 45,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 229.231,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42322,
    "c": 0.15686,
    "h": 269.2
  },
  "luminance": 0.07063
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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