#2E2F9F#2E2F9F

#2E2F9F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.175 H 274.1°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#2E2F9F
RGBrgb(46, 47, 159)
HSLhsl(239, 55%, 40%)
HSVhsv(239, 71%, 62%)
CMYKcmyk(71.1%, 70.4%, 0%, 37.6%)
CIE-LABlab(27.06, 37.09, -60.55)
CIE-LCHlch(27.06, 71.01, 301.49°)
OKLaboklab(38.67% 0.0126 -0.175)
OKLCHoklch(38.67% 0.175 274.1)
XYZxyz(8.3992, 5.1163, 33.3391)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F9F #9F9E2E
analogous
#2E679F #2E2F9F #652E9F
triadic
#2E2F9F #9F2E2F #2F9F2E
tetradic
#2E2F9F #9F2E67 #9F9E2E #2E9F65
square
#2E2F9F #9F2E67 #9F9E2E #2E9F65
split-complementary
#2E2F9F #9F652E #679F2E
monochromatic
#131340 #202170 #2E2F9F #4243C8 #7172D6

Accessibility & contrast

On white

10.38
#2E2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2E2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F9F
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F9F#FFFFFF#000000##FFFFFF
##2E2F9F1.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2e2f9f;
/* rgb */ color: rgb(46, 47, 159);
/* oklch */ color: oklch(38.7% 0.175 274.1);
Tailwind
colors: {
  custom: {
    50: '#7768bc',
    500: '#2e2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f9f;
$custom-light: #7768bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f9f",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 239.469,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38674,
    "c": 0.17548,
    "h": 274.1
  },
  "luminance": 0.05117
}

Semantic roles & 50–950 ramp

primary
#2E2F9F
secondary
#BEBD6B
accent
#DD49DE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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