#2D236E#2D236E

#2D236E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.124 H 282.8°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#2D236E
RGBrgb(45, 35, 110)
HSLhsl(248, 52%, 28%)
HSVhsv(248, 68%, 43%)
CMYKcmyk(59.1%, 68.2%, 0%, 56.9%)
CIE-LABlab(19.58, 27.48, -42.11)
CIE-LCHlch(19.58, 50.28, 303.13°)
OKLaboklab(31.83% 0.0275 -0.121)
OKLCHoklch(31.83% 0.124 282.8)
XYZxyz(4.4968, 2.8855, 15.0688)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D236E #646E23
analogous
#233E6E #2D236E #52236E
triadic
#2D236E #6E2D23 #236E2D
tetradic
#2D236E #6E233E #646E23 #236E52
square
#2D236E #6E233E #646E23 #236E52
split-complementary
#2D236E #6E5223 #3E6E23
monochromatic
#090717 #1A1440 #2D236E #40329C #5847C4

Accessibility & contrast

On white

13.31
#2D236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D236E
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D236E#FFFFFF#000000##FFFFFF
##2D236E1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#0C3645
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2d236e;
/* rgb */ color: rgb(45, 35, 110);
/* oklch */ color: oklch(31.8% 0.124 282.8);
Tailwind
colors: {
  custom: {
    50: '#6d5e98',
    500: '#2d236e',
    950: '#000000',
  },
}
SCSS
$custom: #2d236e;
$custom-light: #6d5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#2d236e",
  "rgb": {
    "r": 45,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 248,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31833,
    "c": 0.12413,
    "h": 282.8
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#2D236E
secondary
#96A14C
accent
#DB4DC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #2D236E

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

Preview Lab → · Contrast checker → · Palette generator →

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