#2E256F#2E256F

#2E256F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.123 H 282.6°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2E256F
RGBrgb(46, 37, 111)
HSLhsl(247, 50%, 29%)
HSVhsv(247, 67%, 44%)
CMYKcmyk(58.6%, 66.7%, 0%, 56.5%)
CIE-LABlab(20.25, 26.71, -41.66)
CIE-LCHlch(20.25, 49.49, 302.67°)
OKLaboklab(32.37% 0.0268 -0.1197)
OKLCHoklch(32.37% 0.123 282.6)
XYZxyz(4.6566, 3.0514, 15.3794)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E256F #666F25
analogous
#25416F #2E256F #53256F
triadic
#2E256F #6F2E25 #256F2E
tetradic
#2E256F #6F2541 #666F25 #256F53
square
#2E256F #6F2541 #666F25 #256F53
split-complementary
#2E256F #6F5325 #416F25
monochromatic
#0A0817 #1B1641 #2E256F #41349D #5A4BC3

Accessibility & contrast

On white

13.04
#2E256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E256F
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E256F#FFFFFF#000000##FFFFFF
##2E256F1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#0E3746
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e256f;
/* rgb */ color: rgb(46, 37, 111);
/* oklch */ color: oklch(32.4% 0.123 282.6);
Tailwind
colors: {
  custom: {
    50: '#6e6099',
    500: '#2e256f',
    950: '#000000',
  },
}
SCSS
$custom: #2e256f;
$custom-light: #6e6099;
$custom-dark: #000000;
JSON
{
  "hex": "#2e256f",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 247.297,
    "s": 50,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3237,
    "c": 0.12266,
    "h": 282.6
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#2E256F
secondary
#98A24E
accent
#DA4EC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2E256F

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

Preview Lab → · Contrast checker → · Palette generator →

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