#2D236F#2D236F

#2D236F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.126 H 282.6°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2D236F
RGBrgb(45, 35, 111)
HSLhsl(248, 52%, 29%)
HSVhsv(248, 68%, 44%)
CMYKcmyk(59.5%, 68.5%, 0%, 56.5%)
CIE-LABlab(19.67, 27.82, -42.61)
CIE-LCHlch(19.67, 50.89, 303.15°)
OKLaboklab(31.93% 0.0274 -0.1225)
OKLCHoklch(31.93% 0.126 282.6)
XYZxyz(4.5516, 2.9074, 15.3572)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D236F #656F23
analogous
#233F6F #2D236F #53236F
triadic
#2D236F #6F2D23 #236F2D
tetradic
#2D236F #6F233F #656F23 #236F53
square
#2D236F #6F233F #656F23 #236F53
split-complementary
#2D236F #6F5323 #3F6F23
monochromatic
#090717 #1A1440 #2D236F #40329E #5847C5

Accessibility & contrast

On white

13.28
#2D236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2D236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D236F
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D236F#FFFFFF#000000##FFFFFF
##2D236F1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#0B3645
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2d236f;
/* rgb */ color: rgb(45, 35, 111);
/* oklch */ color: oklch(31.9% 0.126 282.6);
Tailwind
colors: {
  custom: {
    50: '#6e5e99',
    500: '#2d236f',
    950: '#000000',
  },
}
SCSS
$custom: #2d236f;
$custom-light: #6e5e99;
$custom-dark: #000000;
JSON
{
  "hex": "#2d236f",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 247.895,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31927,
    "c": 0.12554,
    "h": 282.6
  },
  "luminance": 0.02908
}

Semantic roles & 50–950 ramp

primary
#2D236F
secondary
#97A24C
accent
#DB4CC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D236F

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

Preview Lab → · Contrast checker → · Palette generator →

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