#2D23A0#2D23A0

#2D23A0 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.189 H 275.4°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2D23A0
RGBrgb(45, 35, 160)
HSLhsl(245, 64%, 38%)
HSVhsv(245, 78%, 63%)
CMYKcmyk(71.9%, 78.1%, 0%, 37.3%)
CIE-LABlab(24.63, 44.23, -65.18)
CIE-LCHlch(24.63, 78.77, 304.16°)
OKLaboklab(36.96% 0.0178 -0.1884)
OKLCHoklch(36.96% 0.189 275.4)
XYZxyz(8.0263, 4.2972, 33.6574)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D23A0 #96A023
analogous
#2357A0 #2D23A0 #6B23A0
triadic
#2D23A0 #A02D23 #23A02D
tetradic
#2D23A0 #A02357 #96A023 #23A06B
square
#2D23A0 #A02357 #96A023 #23A06B
split-complementary
#2D23A0 #A06B23 #57A023
monochromatic
#110D3C #1F186E #2D23A0 #3C2FD1 #6B61DC

Accessibility & contrast

On white

11.29
#2D23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2D23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D23A0
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D23A0#FFFFFF#000000##FFFFFF
##2D23A01.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d23a0;
/* rgb */ color: rgb(45, 35, 160);
/* oklch */ color: oklch(37.0% 0.189 275.4);
Tailwind
colors: {
  custom: {
    50: '#7861bd',
    500: '#2d23a0',
    950: '#000000',
  },
}
SCSS
$custom: #2d23a0;
$custom-light: #7861bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d23a0",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 244.8,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36957,
    "c": 0.18929,
    "h": 275.4
  },
  "luminance": 0.04298
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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