#2E257A#2E257A

#2E257A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.138 H 280.6°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2E257A
RGBrgb(46, 37, 122)
HSLhsl(246, 53%, 31%)
HSVhsv(246, 70%, 48%)
CMYKcmyk(62.3%, 69.7%, 0%, 52.2%)
CIE-LABlab(21.24, 30.50, -47.10)
CIE-LCHlch(21.24, 56.11, 302.93°)
OKLaboklab(33.4% 0.0255 -0.1356)
OKLCHoklch(33.4% 0.138 280.6)
XYZxyz(5.3000, 3.3087, 18.7679)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E257A #717A25
analogous
#25467A #2E257A #58257A
triadic
#2E257A #7A2E25 #257A2E
tetradic
#2E257A #7A2546 #717A25 #257A58
square
#2E257A #7A2546 #717A25 #257A58
split-complementary
#2E257A #7A5825 #467A25
monochromatic
#0B091C #1C174B #2E257A #4033A9 #5D50CA

Accessibility & contrast

On white

12.64
#2E257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2E257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E257A
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E257A#FFFFFF#000000##FFFFFF
##2E257A1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e257a;
/* rgb */ color: rgb(46, 37, 122);
/* oklch */ color: oklch(33.4% 0.138 280.6);
Tailwind
colors: {
  custom: {
    50: '#7060a1',
    500: '#2e257a',
    950: '#000000',
  },
}
SCSS
$custom: #2e257a;
$custom-light: #7060a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e257a",
  "rgb": {
    "r": 46,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 246.353,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33397,
    "c": 0.13802,
    "h": 280.6
  },
  "luminance": 0.03309
}

Semantic roles & 50–950 ramp

primary
#2E257A
secondary
#A2AC4E
accent
#DD4BCD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2E257A

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

Preview Lab → · Contrast checker → · Palette generator →

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