#2E25A8#2E25A8

#2E25A8 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.2% C 0.197 H 274.7°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2E25A8
RGBrgb(46, 37, 168)
HSLhsl(244, 64%, 40%)
HSVhsv(244, 78%, 66%)
CMYKcmyk(72.6%, 78%, 0%, 34.1%)
CIE-LABlab(25.95, 45.83, -67.84)
CIE-LCHlch(25.95, 81.87, 304.04°)
OKLaboklab(38.16% 0.0163 -0.1962)
OKLCHoklch(38.16% 0.197 274.7)
XYZxyz(8.8538, 4.7303, 37.4846)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E25A8 #9FA825
analogous
#255EA8 #2E25A8 #6F25A8
triadic
#2E25A8 #A82E25 #25A82E
tetradic
#2E25A8 #A8255E #9FA825 #25A86F
square
#2E25A8 #A8255E #9FA825 #25A86F
split-complementary
#2E25A8 #A86F25 #5EA825
monochromatic
#130F44 #201A76 #2E25A8 #4237D3 #7169DE

Accessibility & contrast

On white

10.79
#2E25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2E25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E25A8
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E25A8#FFFFFF#000000##FFFFFF
##2E25A81.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e25a8;
/* rgb */ color: rgb(46, 37, 168);
/* oklch */ color: oklch(38.2% 0.197 274.7);
Tailwind
colors: {
  custom: {
    50: '#7a62c3',
    500: '#2e25a8',
    950: '#000000',
  },
}
SCSS
$custom: #2e25a8;
$custom-light: #7a62c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e25a8",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 244.122,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38163,
    "c": 0.19688,
    "h": 274.7
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#2E25A8
secondary
#BEC465
accent
#E741DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2E25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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