#2E257C#2E257C

#2E257C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.141 H 280.3°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2E257C
RGBrgb(46, 37, 124)
HSLhsl(246, 54%, 32%)
HSVhsv(246, 70%, 49%)
CMYKcmyk(62.9%, 70.2%, 0%, 51.4%)
CIE-LABlab(21.43, 31.19, -48.06)
CIE-LCHlch(21.43, 57.30, 302.98°)
OKLaboklab(33.59% 0.0252 -0.1385)
OKLCHoklch(33.59% 0.141 280.3)
XYZxyz(5.4252, 3.3588, 19.4273)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E257C #737C25
analogous
#25487C #2E257C #5A257C
triadic
#2E257C #7C2E25 #257C2E
tetradic
#2E257C #7C2548 #737C25 #257C5A
square
#2E257C #7C2548 #737C25 #257C5A
split-complementary
#2E257C #7C5A25 #487C25
monochromatic
#0B091E #1D174D #2E257C #3F33AB #5D50CB

Accessibility & contrast

On white

12.56
#2E257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2E257C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E257C
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E257C#FFFFFF#000000##FFFFFF
##2E257C1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e257c;
/* rgb */ color: rgb(46, 37, 124);
/* oklch */ color: oklch(33.6% 0.141 280.3);
Tailwind
colors: {
  custom: {
    50: '#7160a3',
    500: '#2e257c',
    950: '#000000',
  },
}
SCSS
$custom: #2e257c;
$custom-light: #7160a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e257c",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 246.207,
    "s": 54.037,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3359,
    "c": 0.14075,
    "h": 280.3
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#2E257C
secondary
#A4AE4F
accent
#DD4ACE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E257C

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

Preview Lab → · Contrast checker → · Palette generator →

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