#2E257D#2E257D

#2E257D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.142 H 280.2°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2E257D
RGBrgb(46, 37, 125)
HSLhsl(246, 54%, 32%)
HSVhsv(246, 70%, 49%)
CMYKcmyk(63.2%, 70.4%, 0%, 51%)
CIE-LABlab(21.52, 31.53, -48.54)
CIE-LCHlch(21.52, 57.89, 303.01°)
OKLaboklab(33.69% 0.0251 -0.1399)
OKLCHoklch(33.69% 0.142 280.2)
XYZxyz(5.4888, 3.3842, 19.7620)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E257D #747D25
analogous
#25487D #2E257D #5A257D
triadic
#2E257D #7D2E25 #257D2E
tetradic
#2E257D #7D2548 #747D25 #257D5A
square
#2E257D #7D2548 #747D25 #257D5A
split-complementary
#2E257D #7D5A25 #487D25
monochromatic
#0B091F #1D174E #2E257D #3F33AC #5D51CB

Accessibility & contrast

On white

12.52
#2E257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E257D
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E257D#FFFFFF#000000##FFFFFF
##2E257D1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e257d;
/* rgb */ color: rgb(46, 37, 125);
/* oklch */ color: oklch(33.7% 0.142 280.2);
Tailwind
colors: {
  custom: {
    50: '#7160a3',
    500: '#2e257d',
    950: '#000000',
  },
}
SCSS
$custom: #2e257d;
$custom-light: #7160a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e257d",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 246.136,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33686,
    "c": 0.14212,
    "h": 280.2
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E257D

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

Preview Lab → · Contrast checker → · Palette generator →

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