#2E258E#2E258E

#2E258E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.165 H 277.7°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2E258E
RGBrgb(46, 37, 142)
HSLhsl(245, 59%, 35%)
HSVhsv(245, 74%, 56%)
CMYKcmyk(67.6%, 73.9%, 0%, 44.3%)
CIE-LABlab(23.19, 37.30, -56.48)
CIE-LCHlch(23.19, 67.68, 303.44°)
OKLaboklab(35.39% 0.022 -0.1631)
OKLCHoklch(35.39% 0.165 277.7)
XYZxyz(6.6692, 3.8564, 25.9788)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E258E #858E25
analogous
#25508E #2E258E #63258E
triadic
#2E258E #8E2E25 #258E2E
tetradic
#2E258E #8E2550 #858E25 #258E63
square
#2E258E #8E2550 #858E25 #258E63
split-complementary
#2E258E #8E6325 #508E25
monochromatic
#0F0C2D #1E185D #2E258E #3E32BF #645AD4

Accessibility & contrast

On white

11.86
#2E258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2E258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E258E
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E258E#FFFFFF#000000##FFFFFF
##2E258E1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e258e;
/* rgb */ color: rgb(46, 37, 142);
/* oklch */ color: oklch(35.4% 0.165 277.7);
Tailwind
colors: {
  custom: {
    50: '#7561b0',
    500: '#2e258e',
    950: '#000000',
  },
}
SCSS
$custom: #2e258e;
$custom-light: #7561b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e258e",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 245.143,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3539,
    "c": 0.16457,
    "h": 277.7
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#2E258E
secondary
#B0B956
accent
#E246D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E258E

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

Preview Lab → · Contrast checker → · Palette generator →

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