#2E257E#2E257E

#2E257E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.143 H 280.0°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2E257E
RGBrgb(46, 37, 126)
HSLhsl(246, 55%, 32%)
HSVhsv(246, 71%, 49%)
CMYKcmyk(63.5%, 70.6%, 0%, 50.6%)
CIE-LABlab(21.62, 31.88, -49.02)
CIE-LCHlch(21.62, 58.48, 303.03°)
OKLaboklab(33.78% 0.0249 -0.1413)
OKLCHoklch(33.78% 0.143 280)
XYZxyz(5.5530, 3.4099, 20.1002)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E257E #757E25
analogous
#25497E #2E257E #5A257E
triadic
#2E257E #7E2E25 #257E2E
tetradic
#2E257E #7E2549 #757E25 #257E5A
square
#2E257E #7E2549 #757E25 #257E5A
split-complementary
#2E257E #7E5A25 #497E25
monochromatic
#0B091F #1D174F #2E257E #3F33AD #5E51CC

Accessibility & contrast

On white

12.49
#2E257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E257E
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E257E#FFFFFF#000000##FFFFFF
##2E257E1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e257e;
/* rgb */ color: rgb(46, 37, 126);
/* oklch */ color: oklch(33.8% 0.143 280.0);
Tailwind
colors: {
  custom: {
    50: '#7160a4',
    500: '#2e257e',
    950: '#000000',
  },
}
SCSS
$custom: #2e257e;
$custom-light: #7160a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e257e",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 246.067,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33784,
    "c": 0.14347,
    "h": 280
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#2E257E
secondary
#A6B04F
accent
#DE4ACF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E257E

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

Preview Lab → · Contrast checker → · Palette generator →

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