#2E237A#2E237A

#2E237A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.141 H 281.2°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#2E237A
RGBrgb(46, 35, 122)
HSLhsl(248, 55%, 31%)
HSVhsv(248, 71%, 48%)
CMYKcmyk(62.3%, 71.3%, 0%, 52.2%)
CIE-LABlab(20.78, 31.76, -47.85)
CIE-LCHlch(20.78, 57.43, 303.57°)
OKLaboklab(33.07% 0.0273 -0.1378)
OKLCHoklch(33.07% 0.141 281.2)
XYZxyz(5.2395, 3.1877, 18.7478)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E237A #6F7A23
analogous
#23437A #2E237A #59237A
triadic
#2E237A #7A2E23 #237A2E
tetradic
#2E237A #7A2343 #6F7A23 #237A59
square
#2E237A #7A2343 #6F7A23 #237A59
split-complementary
#2E237A #7A5923 #437A23
monochromatic
#0A081B #1C154A #2E237A #4031AA #5C4CCC

Accessibility & contrast

On white

12.82
#2E237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E237A
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E237A#FFFFFF#000000##FFFFFF
##2E237A1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e237a;
/* rgb */ color: rgb(46, 35, 122);
/* oklch */ color: oklch(33.1% 0.141 281.2);
Tailwind
colors: {
  custom: {
    50: '#705fa1',
    500: '#2e237a',
    950: '#000000',
  },
}
SCSS
$custom: #2e237a;
$custom-light: #705fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e237a",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 247.586,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33066,
    "c": 0.14052,
    "h": 281.2
  },
  "luminance": 0.03188
}

Semantic roles & 50–950 ramp

primary
#2E237A
secondary
#A0AD4C
accent
#DF49CC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E237A

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

Preview Lab → · Contrast checker → · Palette generator →

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