#2E237C#2E237C

#2E237C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.143 H 280.8°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#2E237C
RGBrgb(46, 35, 124)
HSLhsl(247, 56%, 31%)
HSVhsv(247, 72%, 49%)
CMYKcmyk(62.9%, 71.8%, 0%, 51.4%)
CIE-LABlab(20.97, 32.43, -48.81)
CIE-LCHlch(20.97, 58.60, 303.60°)
OKLaboklab(33.26% 0.0269 -0.1407)
OKLCHoklch(33.26% 0.143 280.8)
XYZxyz(5.3647, 3.2378, 19.4071)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E237C #717C23
analogous
#23447C #2E237C #5A237C
triadic
#2E237C #7C2E23 #237C2E
tetradic
#2E237C #7C2344 #717C23 #237C5A
square
#2E237C #7C2344 #717C23 #237C5A
split-complementary
#2E237C #7C5A23 #447C23
monochromatic
#0B081D #1C164C #2E237C #4030AC #5D4DCD

Accessibility & contrast

On white

12.75
#2E237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E237C
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E237C#FFFFFF#000000##FFFFFF
##2E237C1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e237c;
/* rgb */ color: rgb(46, 35, 124);
/* oklch */ color: oklch(33.3% 0.143 280.8);
Tailwind
colors: {
  custom: {
    50: '#715fa3',
    500: '#2e237c',
    950: '#000000',
  },
}
SCSS
$custom: #2e237c;
$custom-light: #715fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e237c",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 247.416,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33262,
    "c": 0.14321,
    "h": 280.8
  },
  "luminance": 0.03238
}

Semantic roles & 50–950 ramp

primary
#2E237C
secondary
#A2AF4C
accent
#DF49CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E237C

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

Preview Lab → · Contrast checker → · Palette generator →

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