#2D23A2#2D23A2

#2D23A2 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.192 H 275.2°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#2D23A2
RGBrgb(45, 35, 162)
HSLhsl(245, 64%, 39%)
HSVhsv(245, 78%, 64%)
CMYKcmyk(72.2%, 78.4%, 0%, 36.5%)
CIE-LABlab(24.85, 44.87, -66.03)
CIE-LCHlch(24.85, 79.83, 304.20°)
OKLaboklab(37.18% 0.0173 -0.1909)
OKLCHoklch(37.18% 0.192 275.2)
XYZxyz(8.2027, 4.3678, 34.5862)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D23A2 #98A223
analogous
#2358A2 #2D23A2 #6C23A2
triadic
#2D23A2 #A22D23 #23A22D
tetradic
#2D23A2 #A22358 #98A223 #23A26C
square
#2D23A2 #A22358 #98A223 #23A26C
split-complementary
#2D23A2 #A26C23 #58A223
monochromatic
#110D3D #1F1870 #2D23A2 #3D30D2 #6C62DD

Accessibility & contrast

On white

11.21
#2D23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D23A2
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D23A2#FFFFFF#000000##FFFFFF
##2D23A21.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A6
Deuteranopia (green-blind)
#0035A0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d23a2;
/* rgb */ color: rgb(45, 35, 162);
/* oklch */ color: oklch(37.2% 0.192 275.2);
Tailwind
colors: {
  custom: {
    50: '#7961bf',
    500: '#2d23a2',
    950: '#000000',
  },
}
SCSS
$custom: #2d23a2;
$custom-light: #7961bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d23a2",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 244.724,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37178,
    "c": 0.19171,
    "h": 275.2
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#2D23A2
secondary
#BAC25E
accent
#E740DA
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2D23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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