#2E2F9B#2E2F9B

#2E2F9B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.170 H 274.4°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#2E2F9B
RGBrgb(46, 47, 155)
HSLhsl(239, 54%, 39%)
HSVhsv(239, 70%, 61%)
CMYKcmyk(70.3%, 69.7%, 0%, 39.2%)
CIE-LABlab(26.68, 35.70, -58.75)
CIE-LCHlch(26.68, 68.75, 301.28°)
OKLaboklab(38.28% 0.0131 -0.1698)
OKLCHoklch(38.28% 0.17 274.4)
XYZxyz(8.0577, 4.9797, 31.5405)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F9B #9B9A2E
analogous
#2E659B #2E2F9B #642E9B
triadic
#2E2F9B #9B2E2F #2F9B2E
tetradic
#2E2F9B #9B2E65 #9B9A2E #2E9B64
square
#2E2F9B #9B2E65 #9B9A2E #2E9B64
split-complementary
#2E2F9B #9B642E #659B2E
monochromatic
#12123D #20216C #2E2F9B #4041C6 #6F70D4

Accessibility & contrast

On white

10.52
#2E2F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2E2F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F9B
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F9B#FFFFFF#000000##FFFFFF
##2E2F9B1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e2f9b;
/* rgb */ color: rgb(46, 47, 155);
/* oklch */ color: oklch(38.3% 0.170 274.4);
Tailwind
colors: {
  custom: {
    50: '#7768ba',
    500: '#2e2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f9b;
$custom-light: #7768ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f9b",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 239.45,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38277,
    "c": 0.17027,
    "h": 274.4
  },
  "luminance": 0.0498
}

Semantic roles & 50–950 ramp

primary
#2E2F9B
secondary
#BCBB69
accent
#DC4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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