#2D23A8#2D23A8

#2D23A8 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.199 H 274.6°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#2D23A8
RGBrgb(45, 35, 168)
HSLhsl(245, 66%, 40%)
HSVhsv(245, 79%, 66%)
CMYKcmyk(73.2%, 79.2%, 0%, 34.1%)
CIE-LABlab(25.52, 46.78, -68.56)
CIE-LCHlch(25.52, 83.00, 304.31°)
OKLaboklab(37.84% 0.0159 -0.1983)
OKLCHoklch(37.84% 0.199 274.6)
XYZxyz(8.7488, 4.5862, 37.4624)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D23A8 #9EA823
analogous
#235CA8 #2D23A8 #6F23A8
triadic
#2D23A8 #A82D23 #23A82D
tetradic
#2D23A8 #A8235C #9EA823 #23A86F
square
#2D23A8 #A8235C #9EA823 #23A86F
split-complementary
#2D23A8 #A86F23 #5CA823
monochromatic
#120E43 #1F1875 #2D23A8 #4034D5 #6F66DF

Accessibility & contrast

On white

10.95
#2D23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D23A8
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D23A8#FFFFFF#000000##FFFFFF
##2D23A81.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d23a8;
/* rgb */ color: rgb(45, 35, 168);
/* oklch */ color: oklch(37.8% 0.199 274.6);
Tailwind
colors: {
  custom: {
    50: '#7a61c3',
    500: '#2d23a8',
    950: '#000000',
  },
}
SCSS
$custom: #2d23a8;
$custom-light: #7a61c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d23a8",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 244.511,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37843,
    "c": 0.1989,
    "h": 274.6
  },
  "luminance": 0.04587
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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