#2E256A#2E256A

#2E256A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.9% C 0.115 H 283.6°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2E256A
RGBrgb(46, 37, 106)
HSLhsl(248, 48%, 28%)
HSVhsv(248, 65%, 42%)
CMYKcmyk(56.6%, 65.1%, 0%, 58.4%)
CIE-LABlab(19.82, 24.99, -39.12)
CIE-LCHlch(19.82, 46.42, 302.57°)
OKLaboklab(31.92% 0.0272 -0.1122)
OKLCHoklch(31.92% 0.115 283.6)
XYZxyz(4.3890, 2.9443, 13.9699)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E256A #616A25
analogous
#253E6A #2E256A #50256A
triadic
#2E256A #6A2E25 #256A2E
tetradic
#2E256A #6A253E #616A25 #256A50
square
#2E256A #6A253E #616A25 #256A50
split-complementary
#2E256A #6A5025 #3E6A25
monochromatic
#0A0817 #1A153D #2E256A #423597 #594AC0

Accessibility & contrast

On white

13.22
#2E256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E256A
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E256A#FFFFFF#000000##FFFFFF
##2E256A1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#143643
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e256a;
/* rgb */ color: rgb(46, 37, 106);
/* oklch */ color: oklch(31.9% 0.115 283.6);
Tailwind
colors: {
  custom: {
    50: '#6d6095',
    500: '#2e256a',
    950: '#000000',
  },
}
SCSS
$custom: #2e256a;
$custom-light: #6d6095;
$custom-dark: #000000;
JSON
{
  "hex": "#2e256a",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 247.826,
    "s": 48.252,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31923,
    "c": 0.11547,
    "h": 283.6
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#2E256A
secondary
#939D4E
accent
#D850C6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2E256A

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

Preview Lab → · Contrast checker → · Palette generator →

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