#2D236B#2D236B

#2D236B is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.6% C 0.120 H 283.4°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2D236B
RGBrgb(45, 35, 107)
HSLhsl(248, 51%, 28%)
HSVhsv(248, 67%, 42%)
CMYKcmyk(57.9%, 67.3%, 0%, 58%)
CIE-LABlab(19.31, 26.45, -40.59)
CIE-LCHlch(19.31, 48.45, 303.09°)
OKLaboklab(31.56% 0.0279 -0.1166)
OKLCHoklch(31.56% 0.12 283.4)
XYZxyz(4.3363, 2.8212, 14.2231)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D236B #616B23
analogous
#233D6B #2D236B #51236B
triadic
#2D236B #6B2D23 #236B2D
tetradic
#2D236B #6B233D #616B23 #236B51
square
#2D236B #6B233D #616B23 #236B51
split-complementary
#2D236B #6B5123 #3D6B23
monochromatic
#0A0817 #1A143D #2D236B #403299 #5746C2

Accessibility & contrast

On white

13.43
#2D236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2D236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D236B
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D236B#FFFFFF#000000##FFFFFF
##2D236B1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#103543
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d236b;
/* rgb */ color: rgb(45, 35, 107);
/* oklch */ color: oklch(31.6% 0.120 283.4);
Tailwind
colors: {
  custom: {
    50: '#6d5e96',
    500: '#2d236b',
    950: '#000000',
  },
}
SCSS
$custom: #2d236b;
$custom-light: #6d5e96;
$custom-dark: #000000;
JSON
{
  "hex": "#2d236b",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 248.333,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31557,
    "c": 0.11987,
    "h": 283.4
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#2D236B
secondary
#939E4B
accent
#DA4EC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2D236B

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

Preview Lab → · Contrast checker → · Palette generator →

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