#2E25A6#2E25A6

#2E25A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.194 H 274.9°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2E25A6
RGBrgb(46, 37, 166)
HSLhsl(244, 64%, 40%)
HSVhsv(244, 78%, 65%)
CMYKcmyk(72.3%, 77.7%, 0%, 34.9%)
CIE-LABlab(25.73, 45.19, -67.00)
CIE-LCHlch(25.73, 80.81, 304.00°)
OKLaboklab(37.94% 0.0168 -0.1937)
OKLCHoklch(37.94% 0.194 274.9)
XYZxyz(8.6689, 4.6563, 36.5109)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E25A6 #9DA625
analogous
#255DA6 #2E25A6 #6F25A6
triadic
#2E25A6 #A62E25 #25A62E
tetradic
#2E25A6 #A6255D #9DA625 #25A66F
square
#2E25A6 #A6255D #9DA625 #25A66F
split-complementary
#2E25A6 #A66F25 #5DA625
monochromatic
#120F42 #201A74 #2E25A6 #4136D2 #7068DD

Accessibility & contrast

On white

10.87
#2E25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2E25A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E25A6
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E25A6#FFFFFF#000000##FFFFFF
##2E25A61.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e25a6;
/* rgb */ color: rgb(46, 37, 166);
/* oklch */ color: oklch(37.9% 0.194 274.9);
Tailwind
colors: {
  custom: {
    50: '#7a62c2',
    500: '#2e25a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e25a6;
$custom-light: #7a62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e25a6",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 244.186,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37943,
    "c": 0.19446,
    "h": 274.9
  },
  "luminance": 0.04657
}

Semantic roles & 50–950 ramp

primary
#2E25A6
secondary
#BDC364
accent
#E741DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2E25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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