#2D236D#2D236D

#2D236D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.123 H 283.0°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#2D236D
RGBrgb(45, 35, 109)
HSLhsl(248, 51%, 28%)
HSVhsv(248, 68%, 43%)
CMYKcmyk(58.7%, 67.9%, 0%, 57.3%)
CIE-LABlab(19.49, 27.14, -41.61)
CIE-LCHlch(19.49, 49.67, 303.11°)
OKLaboklab(31.74% 0.0277 -0.1196)
OKLCHoklch(31.74% 0.123 283)
XYZxyz(4.4427, 2.8638, 14.7837)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D236D #636D23
analogous
#233E6D #2D236D #52236D
triadic
#2D236D #6D2D23 #236D2D
tetradic
#2D236D #6D233E #636D23 #236D52
square
#2D236D #6D233E #636D23 #236D52
split-complementary
#2D236D #6D5223 #3E6D23
monochromatic
#0A0717 #1A143F #2D236D #40329B #5847C4

Accessibility & contrast

On white

13.35
#2D236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2D236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D236D
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D236D#FFFFFF#000000##FFFFFF
##2D236D1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#0E3544
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d236d;
/* rgb */ color: rgb(45, 35, 109);
/* oklch */ color: oklch(31.7% 0.123 283.0);
Tailwind
colors: {
  custom: {
    50: '#6d5e98',
    500: '#2d236d',
    950: '#000000',
  },
}
SCSS
$custom: #2d236d;
$custom-light: #6d5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#2d236d",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 248.108,
    "s": 51.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31741,
    "c": 0.12272,
    "h": 283
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#2D236D
secondary
#95A04B
accent
#DB4DC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D236D

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

Preview Lab → · Contrast checker → · Palette generator →

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