#2E2875#2E2875

#2E2875 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.127 H 280.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#2E2875
RGBrgb(46, 40, 117)
HSLhsl(245, 49%, 31%)
HSVhsv(245, 66%, 46%)
CMYKcmyk(60.7%, 65.8%, 0%, 54.1%)
CIE-LABlab(21.51, 26.83, -43.46)
CIE-LCHlch(21.51, 51.07, 301.69°)
OKLaboklab(33.46% 0.0232 -0.1249)
OKLCHoklch(33.46% 0.127 280.5)
XYZxyz(5.0954, 3.3824, 17.2105)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2875 #6F7528
analogous
#284875 #2E2875 #542875
triadic
#2E2875 #752E28 #28752E
tetradic
#2E2875 #752848 #6F7528 #287554
square
#2E2875 #752848 #6F7528 #287554
split-complementary
#2E2875 #755428 #487528
monochromatic
#0A091A #1C1847 #2E2875 #4038A3 #5C53C4

Accessibility & contrast

On white

12.53
#2E2875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2E2875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2875
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2875#FFFFFF#000000##FFFFFF
##2E28751.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#033B4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e2875;
/* rgb */ color: rgb(46, 40, 117);
/* oklch */ color: oklch(33.5% 0.127 280.5);
Tailwind
colors: {
  custom: {
    50: '#6f629d',
    500: '#2e2875',
    950: '#000000',
  },
}
SCSS
$custom: #2e2875;
$custom-light: #6f629d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2875",
  "rgb": {
    "r": 46,
    "g": 40,
    "b": 117
  },
  "hsl": {
    "h": 244.675,
    "s": 49.045,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33457,
    "c": 0.12709,
    "h": 280.5
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#2E2875
secondary
#A0A752
accent
#D94FCE
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E2875

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

Preview Lab → · Contrast checker → · Palette generator →

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