#2D23A1#2D23A1

#2D23A1 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.191 H 275.3°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2D23A1
RGBrgb(45, 35, 161)
HSLhsl(245, 64%, 38%)
HSVhsv(245, 78%, 63%)
CMYKcmyk(72%, 78.3%, 0%, 36.9%)
CIE-LABlab(24.74, 44.55, -65.60)
CIE-LCHlch(24.74, 79.30, 304.18°)
OKLaboklab(37.07% 0.0175 -0.1897)
OKLCHoklch(37.07% 0.191 275.3)
XYZxyz(8.1141, 4.3324, 34.1199)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D23A1 #97A123
analogous
#2358A1 #2D23A1 #6C23A1
triadic
#2D23A1 #A12D23 #23A12D
tetradic
#2D23A1 #A12358 #97A123 #23A16C
square
#2D23A1 #A12358 #97A123 #23A16C
split-complementary
#2D23A1 #A16C23 #58A123
monochromatic
#110D3C #1F186F #2D23A1 #3C2FD2 #6B62DD

Accessibility & contrast

On white

11.25
#2D23A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2D23A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D23A1
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D23A1#FFFFFF#000000##FFFFFF
##2D23A11.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d23a1;
/* rgb */ color: rgb(45, 35, 161);
/* oklch */ color: oklch(37.1% 0.191 275.3);
Tailwind
colors: {
  custom: {
    50: '#7961be',
    500: '#2d23a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d23a1;
$custom-light: #7961be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d23a1",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 161
  },
  "hsl": {
    "h": 244.762,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37067,
    "c": 0.1905,
    "h": 275.3
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#2D23A1
secondary
#BAC25E
accent
#E741DA
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2D23A1

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

Preview Lab → · Contrast checker → · Palette generator →

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