#2E258F#2E258F

#2E258F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.166 H 277.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2E258F
RGBrgb(46, 37, 143)
HSLhsl(245, 59%, 35%)
HSVhsv(245, 74%, 56%)
CMYKcmyk(67.8%, 74.1%, 0%, 43.9%)
CIE-LABlab(23.29, 37.64, -56.93)
CIE-LCHlch(23.29, 68.24, 303.47°)
OKLaboklab(35.49% 0.0218 -0.1644)
OKLCHoklch(35.49% 0.166 277.6)
XYZxyz(6.7446, 3.8866, 26.3760)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E258F #868F25
analogous
#25518F #2E258F #63258F
triadic
#2E258F #8F2E25 #258F2E
tetradic
#2E258F #8F2551 #868F25 #258F63
square
#2E258F #8F2551 #868F25 #258F63
split-complementary
#2E258F #8F6325 #518F25
monochromatic
#0F0C2E #1E185E #2E258F #3E32C0 #645AD4

Accessibility & contrast

On white

11.82
#2E258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2E258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E258F
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E258F#FFFFFF#000000##FFFFFF
##2E258F1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e258f;
/* rgb */ color: rgb(46, 37, 143);
/* oklch */ color: oklch(35.5% 0.166 277.6);
Tailwind
colors: {
  custom: {
    50: '#7561b1',
    500: '#2e258f',
    950: '#000000',
  },
}
SCSS
$custom: #2e258f;
$custom-light: #7561b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e258f",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 245.094,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35493,
    "c": 0.16585,
    "h": 277.6
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#2E258F
secondary
#B1B957
accent
#E246D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2E258F

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

Preview Lab → · Contrast checker → · Palette generator →

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