#2E237F#2E237F

#2E237F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.147 H 280.3°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#2E237F
RGBrgb(46, 35, 127)
HSLhsl(247, 57%, 32%)
HSVhsv(247, 72%, 50%)
CMYKcmyk(63.8%, 72.4%, 0%, 50.2%)
CIE-LABlab(21.26, 33.45, -50.24)
CIE-LCHlch(21.26, 60.35, 303.66°)
OKLaboklab(33.56% 0.0264 -0.1448)
OKLCHoklch(33.56% 0.147 280.3)
XYZxyz(5.5573, 3.3148, 20.4215)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E237F #747F23
analogous
#23467F #2E237F #5C237F
triadic
#2E237F #7F2E23 #237F2E
tetradic
#2E237F #7F2346 #747F23 #237F5C
square
#2E237F #7F2346 #747F23 #237F5C
split-complementary
#2E237F #7F5C23 #467F23
monochromatic
#0B091F #1D164F #2E237F #3F30AF #5D4ECE

Accessibility & contrast

On white

12.63
#2E237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2E237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E237F
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E237F#FFFFFF#000000##FFFFFF
##2E237F1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e237f;
/* rgb */ color: rgb(46, 35, 127);
/* oklch */ color: oklch(33.6% 0.147 280.3);
Tailwind
colors: {
  custom: {
    50: '#715fa5',
    500: '#2e237f',
    950: '#000000',
  },
}
SCSS
$custom: #2e237f;
$custom-light: #715fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e237f",
  "rgb": {
    "r": 46,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 247.174,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3356,
    "c": 0.14722,
    "h": 280.3
  },
  "luminance": 0.03315
}

Semantic roles & 50–950 ramp

primary
#2E237F
secondary
#A5B14C
accent
#E048CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2E237F

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

Preview Lab → · Contrast checker → · Palette generator →

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