#2D2EA1#2D2EA1

#2D2EA1 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.179 H 273.7°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2D2EA1
RGBrgb(45, 46, 161)
HSLhsl(239, 56%, 40%)
HSVhsv(239, 72%, 63%)
CMYKcmyk(72%, 71.4%, 0%, 36.9%)
CIE-LABlab(26.97, 38.28, -61.92)
CIE-LCHlch(26.97, 72.80, 301.72°)
OKLaboklab(38.65% 0.0117 -0.179)
OKLCHoklch(38.65% 0.179 273.7)
XYZxyz(8.4901, 5.0843, 34.2452)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2EA1 #A1A02D
analogous
#2D68A1 #2D2EA1 #662DA1
triadic
#2D2EA1 #A12D2E #2EA12D
tetradic
#2D2EA1 #A12D68 #A1A02D #2DA166
square
#2D2EA1 #A12D68 #A1A02D #2DA166
split-complementary
#2D2EA1 #A1662D #68A12D
monochromatic
#121341 #202071 #2D2EA1 #4142CA #7172D7

Accessibility & contrast

On white

10.41
#2D2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2D2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2EA1
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2EA1#FFFFFF#000000##FFFFFF
##2D2EA11.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#003A9F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d2ea1;
/* rgb */ color: rgb(45, 46, 161);
/* oklch */ color: oklch(38.7% 0.179 273.7);
Tailwind
colors: {
  custom: {
    50: '#7868be',
    500: '#2d2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #2d2ea1;
$custom-light: #7868be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2ea1",
  "rgb": {
    "r": 45,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 239.483,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38651,
    "c": 0.17942,
    "h": 273.7
  },
  "luminance": 0.05085
}

Semantic roles & 50–950 ramp

primary
#2D2EA1
secondary
#BFBE6B
accent
#DE48E0
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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