#2E258A#2E258A

#2E258A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.159 H 278.2°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2E258A
RGBrgb(46, 37, 138)
HSLhsl(245, 58%, 34%)
HSVhsv(245, 73%, 54%)
CMYKcmyk(66.7%, 73.2%, 0%, 45.9%)
CIE-LABlab(22.79, 35.96, -54.65)
CIE-LCHlch(22.79, 65.42, 303.34°)
OKLaboklab(34.98% 0.0228 -0.1577)
OKLCHoklch(34.98% 0.159 278.2)
XYZxyz(6.3742, 3.7384, 24.4255)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E258A #818A25
analogous
#254E8A #2E258A #61258A
triadic
#2E258A #8A2E25 #258A2E
tetradic
#2E258A #8A254E #818A25 #258A61
square
#2E258A #8A254E #818A25 #258A61
split-complementary
#2E258A #8A6125 #4E8A25
monochromatic
#0E0B29 #1E185A #2E258A #3E32BA #6257D2

Accessibility & contrast

On white

12.02
#2E258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E258A
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E258A#FFFFFF#000000##FFFFFF
##2E258A1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e258a;
/* rgb */ color: rgb(46, 37, 138);
/* oklch */ color: oklch(35.0% 0.159 278.2);
Tailwind
colors: {
  custom: {
    50: '#7461ad',
    500: '#2e258a',
    950: '#000000',
  },
}
SCSS
$custom: #2e258a;
$custom-light: #7461ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e258a",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 245.347,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3498,
    "c": 0.15939,
    "h": 278.2
  },
  "luminance": 0.03739
}

Semantic roles & 50–950 ramp

primary
#2E258A
secondary
#AEB754
accent
#E147D3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E258A

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

Preview Lab → · Contrast checker → · Palette generator →

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