#2D23A6#2D23A6

#2D23A6 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.6% C 0.197 H 274.8°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2D23A6
RGBrgb(45, 35, 166)
HSLhsl(245, 65%, 39%)
HSVhsv(245, 79%, 65%)
CMYKcmyk(72.9%, 78.9%, 0%, 34.9%)
CIE-LABlab(25.30, 46.15, -67.72)
CIE-LCHlch(25.30, 81.95, 304.27°)
OKLaboklab(37.62% 0.0163 -0.1958)
OKLCHoklch(37.62% 0.197 274.8)
XYZxyz(8.5639, 4.5123, 36.4886)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D23A6 #9CA623
analogous
#235BA6 #2D23A6 #6F23A6
triadic
#2D23A6 #A62D23 #23A62D
tetradic
#2D23A6 #A6235B #9CA623 #23A66F
square
#2D23A6 #A6235B #9CA623 #23A66F
split-complementary
#2D23A6 #A66F23 #5BA623
monochromatic
#120E41 #1F1873 #2D23A6 #3F32D4 #6E65DF

Accessibility & contrast

On white

11.04
#2D23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D23A6
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D23A6#FFFFFF#000000##FFFFFF
##2D23A61.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#0036A4
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d23a6;
/* rgb */ color: rgb(45, 35, 166);
/* oklch */ color: oklch(37.6% 0.197 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a61c2',
    500: '#2d23a6',
    950: '#000000',
  },
}
SCSS
$custom: #2d23a6;
$custom-light: #7a61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d23a6",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 244.58,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37621,
    "c": 0.19652,
    "h": 274.8
  },
  "luminance": 0.04513
}

Semantic roles & 50–950 ramp

primary
#2D23A6
secondary
#BCC461
accent
#E840DB
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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