#2E237D#2E237D

#2E237D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.145 H 280.7°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#2E237D
RGBrgb(46, 35, 125)
HSLhsl(247, 56%, 31%)
HSVhsv(247, 72%, 49%)
CMYKcmyk(63.2%, 72%, 0%, 51%)
CIE-LABlab(21.07, 32.77, -49.29)
CIE-LCHlch(21.07, 59.19, 303.62°)
OKLaboklab(33.36% 0.0267 -0.1421)
OKLCHoklch(33.36% 0.145 280.7)
XYZxyz(5.4282, 3.2632, 19.7419)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E237D #727D23
analogous
#23457D #2E237D #5B237D
triadic
#2E237D #7D2E23 #237D2E
tetradic
#2E237D #7D2345 #727D23 #237D5B
square
#2E237D #7D2345 #727D23 #237D5B
split-complementary
#2E237D #7D5B23 #457D23
monochromatic
#0B081D #1C164D #2E237D #4030AD #5D4DCD

Accessibility & contrast

On white

12.71
#2E237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E237D
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E237D#FFFFFF#000000##FFFFFF
##2E237D1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e237d;
/* rgb */ color: rgb(46, 35, 125);
/* oklch */ color: oklch(33.4% 0.145 280.7);
Tailwind
colors: {
  custom: {
    50: '#715fa4',
    500: '#2e237d',
    950: '#000000',
  },
}
SCSS
$custom: #2e237d;
$custom-light: #715fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e237d",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 247.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33361,
    "c": 0.14455,
    "h": 280.7
  },
  "luminance": 0.03264
}

Semantic roles & 50–950 ramp

primary
#2E237D
secondary
#A3AF4C
accent
#E048CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E237D

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

Preview Lab → · Contrast checker → · Palette generator →

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