#2E258B#2E258B

#2E258B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.161 H 278.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2E258B
RGBrgb(46, 37, 139)
HSLhsl(245, 58%, 35%)
HSVhsv(245, 73%, 55%)
CMYKcmyk(66.9%, 73.4%, 0%, 45.5%)
CIE-LABlab(22.89, 36.29, -55.11)
CIE-LCHlch(22.89, 65.99, 303.37°)
OKLaboklab(35.08% 0.0226 -0.1591)
OKLCHoklch(35.08% 0.161 278.1)
XYZxyz(6.4470, 3.7675, 24.8086)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E258B #828B25
analogous
#254F8B #2E258B #61258B
triadic
#2E258B #8B2E25 #258B2E
tetradic
#2E258B #8B254F #828B25 #258B61
square
#2E258B #8B254F #828B25 #258B61
split-complementary
#2E258B #8B6125 #4F8B25
monochromatic
#0E0B2A #1E185B #2E258B #3E32BB #6358D3

Accessibility & contrast

On white

11.98
#2E258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E258B
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E258B#FFFFFF#000000##FFFFFF
##2E258B1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e258b;
/* rgb */ color: rgb(46, 37, 139);
/* oklch */ color: oklch(35.1% 0.161 278.1);
Tailwind
colors: {
  custom: {
    50: '#7461ae',
    500: '#2e258b',
    950: '#000000',
  },
}
SCSS
$custom: #2e258b;
$custom-light: #7461ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e258b",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 245.294,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35082,
    "c": 0.16069,
    "h": 278.1
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#2E258B
secondary
#AEB755
accent
#E147D4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E258B

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

Preview Lab → · Contrast checker → · Palette generator →

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