#2D23A7#2D23A7

#2D23A7 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.7% C 0.198 H 274.7°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2D23A7
RGBrgb(45, 35, 167)
HSLhsl(245, 65%, 40%)
HSVhsv(245, 79%, 65%)
CMYKcmyk(73.1%, 79%, 0%, 34.5%)
CIE-LABlab(25.41, 46.47, -68.14)
CIE-LCHlch(25.41, 82.47, 304.29°)
OKLaboklab(37.73% 0.0161 -0.1971)
OKLCHoklch(37.73% 0.198 274.7)
XYZxyz(8.6560, 4.5491, 36.9736)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D23A7 #9DA723
analogous
#235BA7 #2D23A7 #6F23A7
triadic
#2D23A7 #A72D23 #23A72D
tetradic
#2D23A7 #A7235B #9DA723 #23A76F
square
#2D23A7 #A7235B #9DA723 #23A76F
split-complementary
#2D23A7 #A76F23 #5BA723
monochromatic
#120E42 #1F1874 #2D23A7 #3F33D4 #6F66DF

Accessibility & contrast

On white

10.99
#2D23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2D23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D23A7
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D23A7#FFFFFF#000000##FFFFFF
##2D23A71.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0036A5
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d23a7;
/* rgb */ color: rgb(45, 35, 167);
/* oklch */ color: oklch(37.7% 0.198 274.7);
Tailwind
colors: {
  custom: {
    50: '#7a61c2',
    500: '#2d23a7',
    950: '#000000',
  },
}
SCSS
$custom: #2d23a7;
$custom-light: #7a61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d23a7",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 244.545,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37732,
    "c": 0.19772,
    "h": 274.7
  },
  "luminance": 0.0455
}

Semantic roles & 50–950 ramp

primary
#2D23A7
secondary
#BDC461
accent
#E83FDC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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