#2D23A4#2D23A4

#2D23A4 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.4% C 0.194 H 275.0°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2D23A4
RGBrgb(45, 35, 164)
HSLhsl(245, 65%, 39%)
HSVhsv(245, 79%, 64%)
CMYKcmyk(72.6%, 78.7%, 0%, 35.7%)
CIE-LABlab(25.07, 45.51, -66.87)
CIE-LCHlch(25.07, 80.89, 304.24°)
OKLaboklab(37.4% 0.0168 -0.1934)
OKLCHoklch(37.4% 0.194 275)
XYZxyz(8.3818, 4.4395, 35.5299)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D23A4 #9AA423
analogous
#235AA4 #2D23A4 #6E23A4
triadic
#2D23A4 #A42D23 #23A42D
tetradic
#2D23A4 #A4235A #9AA423 #23A46E
square
#2D23A4 #A4235A #9AA423 #23A46E
split-complementary
#2D23A4 #A46E23 #5AA423
monochromatic
#110D3F #1F1872 #2D23A4 #3E31D3 #6D64DE

Accessibility & contrast

On white

11.12
#2D23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2D23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D23A4
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D23A4#FFFFFF#000000##FFFFFF
##2D23A41.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d23a4;
/* rgb */ color: rgb(45, 35, 164);
/* oklch */ color: oklch(37.4% 0.194 275.0);
Tailwind
colors: {
  custom: {
    50: '#7961c0',
    500: '#2d23a4',
    950: '#000000',
  },
}
SCSS
$custom: #2d23a4;
$custom-light: #7961c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d23a4",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 244.651,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37399,
    "c": 0.19412,
    "h": 275
  },
  "luminance": 0.0444
}

Semantic roles & 50–950 ramp

primary
#2D23A4
secondary
#BBC360
accent
#E840DB
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2D23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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