#2E258C#2E258C

#2E258C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.162 H 277.9°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#2E258C
RGBrgb(46, 37, 140)
HSLhsl(245, 58%, 35%)
HSVhsv(245, 74%, 55%)
CMYKcmyk(67.1%, 73.6%, 0%, 45.1%)
CIE-LABlab(22.99, 36.63, -55.56)
CIE-LCHlch(22.99, 66.55, 303.39°)
OKLaboklab(35.18% 0.0224 -0.1604)
OKLCHoklch(35.18% 0.162 277.9)
XYZxyz(6.5204, 3.7969, 25.1951)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E258C #838C25
analogous
#254F8C #2E258C #62258C
triadic
#2E258C #8C2E25 #258C2E
tetradic
#2E258C #8C254F #838C25 #258C62
square
#2E258C #8C254F #838C25 #258C62
split-complementary
#2E258C #8C6225 #4F8C25
monochromatic
#0E0B2B #1E185C #2E258C #3E32BC #6358D3

Accessibility & contrast

On white

11.94
#2E258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2E258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E258C
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E258C#FFFFFF#000000##FFFFFF
##2E258C1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e258c;
/* rgb */ color: rgb(46, 37, 140);
/* oklch */ color: oklch(35.2% 0.162 277.9);
Tailwind
colors: {
  custom: {
    50: '#7461af',
    500: '#2e258c',
    950: '#000000',
  },
}
SCSS
$custom: #2e258c;
$custom-light: #7461af;
$custom-dark: #000000;
JSON
{
  "hex": "#2e258c",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 245.243,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35184,
    "c": 0.16199,
    "h": 277.9
  },
  "luminance": 0.03797
}

Semantic roles & 50–950 ramp

primary
#2E258C
secondary
#AFB855
accent
#E146D4
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2E258C

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

Preview Lab → · Contrast checker → · Palette generator →

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