#2E2A9F#2E2A9F

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

Color values

HEX#2E2A9F
RGBrgb(46, 42, 159)
HSLhsl(242, 58%, 39%)
HSVhsv(242, 74%, 62%)
CMYKcmyk(71.1%, 73.6%, 0%, 37.6%)
CIE-LABlab(25.98, 40.09, -62.34)
CIE-LCHlch(25.98, 74.12, 302.74°)
OKLaboklab(37.9% 0.0156 -0.1802)
OKLCHoklch(37.9% 0.181 275)
XYZxyz(8.2106, 4.7392, 33.2762)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2A9F #9B9F2A
analogous
#2A619F #2E2A9F #692A9F
triadic
#2E2A9F #9F2E2A #2A9F2E
tetradic
#2E2A9F #9F2A61 #9B9F2A #2A9F69
square
#2E2A9F #9F2A61 #9B9F2A #2A9F69
split-complementary
#2E2A9F #9F692A #619F2A
monochromatic
#12103E #201D6F #2E2A9F #403BCB #6F6BD8

Accessibility & contrast

On white

10.78
#2E2A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E2A9F
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2A9F#FFFFFF#000000##FFFFFF
##2E2A9F1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e2a9f;
/* rgb */ color: rgb(46, 42, 159);
/* oklch */ color: oklch(37.9% 0.181 275.0);
Tailwind
colors: {
  custom: {
    50: '#7865bd',
    500: '#2e2a9f',
    950: '#000000',
  },
}
SCSS
$custom: #2e2a9f;
$custom-light: #7865bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2a9f",
  "rgb": {
    "r": 46,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 242.051,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37897,
    "c": 0.18091,
    "h": 275
  },
  "luminance": 0.0474
}

Semantic roles & 50–950 ramp

primary
#2E2A9F
secondary
#BCBF66
accent
#E146DC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E2A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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