#2E256B#2E256B

#2E256B is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.0% C 0.117 H 283.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#2E256B
RGBrgb(46, 37, 107)
HSLhsl(248, 49%, 28%)
HSVhsv(248, 65%, 42%)
CMYKcmyk(57%, 65.4%, 0%, 58%)
CIE-LABlab(19.90, 25.33, -39.63)
CIE-LCHlch(19.90, 47.03, 302.59°)
OKLaboklab(32.01% 0.0272 -0.1137)
OKLCHoklch(32.01% 0.117 283.4)
XYZxyz(4.4413, 2.9653, 14.2454)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E256B #626B25
analogous
#253F6B #2E256B #51256B
triadic
#2E256B #6B2E25 #256B2E
tetradic
#2E256B #6B253F #626B25 #256B51
square
#2E256B #6B253F #626B25 #256B51
split-complementary
#2E256B #6B5125 #3F6B25
monochromatic
#0A0817 #1A153E #2E256B #423598 #594AC0

Accessibility & contrast

On white

13.18
#2E256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E256B
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E256B#FFFFFF#000000##FFFFFF
##2E256B1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#133644
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e256b;
/* rgb */ color: rgb(46, 37, 107);
/* oklch */ color: oklch(32.0% 0.117 283.4);
Tailwind
colors: {
  custom: {
    50: '#6d6096',
    500: '#2e256b',
    950: '#000000',
  },
}
SCSS
$custom: #2e256b;
$custom-light: #6d6096;
$custom-dark: #000000;
JSON
{
  "hex": "#2e256b",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 247.714,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32012,
    "c": 0.11691,
    "h": 283.4
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#2E256B
secondary
#949E4E
accent
#D850C7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2E256B

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

Preview Lab → · Contrast checker → · Palette generator →

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