#2E2F9A#2E2F9A

#2E2F9A is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.169 H 274.5°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2E2F9A
RGBrgb(46, 47, 154)
HSLhsl(239, 54%, 39%)
HSVhsv(239, 70%, 60%)
CMYKcmyk(70.1%, 69.5%, 0%, 39.6%)
CIE-LABlab(26.58, 35.35, -58.30)
CIE-LCHlch(26.58, 68.18, 301.23°)
OKLaboklab(38.18% 0.0133 -0.1684)
OKLCHoklch(38.18% 0.169 274.5)
XYZxyz(7.9740, 4.9462, 31.1001)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F9A #9A992E
analogous
#2E659A #2E2F9A #632E9A
triadic
#2E2F9A #9A2E2F #2F9A2E
tetradic
#2E2F9A #9A2E65 #9A992E #2E9A63
square
#2E2F9A #9A2E65 #9A992E #2E9A63
split-complementary
#2E2F9A #9A632E #659A2E
monochromatic
#12123C #20216B #2E2F9A #3F41C6 #6F6FD4

Accessibility & contrast

On white

10.56
#2E2F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2E2F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F9A
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F9A#FFFFFF#000000##FFFFFF
##2E2F9A1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e2f9a;
/* rgb */ color: rgb(46, 47, 154);
/* oklch */ color: oklch(38.2% 0.169 274.5);
Tailwind
colors: {
  custom: {
    50: '#7668b9',
    500: '#2e2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f9a;
$custom-light: #7668b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f9a",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 239.444,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38179,
    "c": 0.16896,
    "h": 274.5
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#2E2F9A
secondary
#BBBA69
accent
#DC4ADD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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