#2E2F8B#2E2F8B

#2E2F8B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.149 H 275.8°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#2E2F8B
RGBrgb(46, 47, 139)
HSLhsl(239, 50%, 36%)
HSVhsv(239, 67%, 55%)
CMYKcmyk(66.9%, 66.2%, 0%, 45.5%)
CIE-LABlab(25.19, 30.04, -51.33)
CIE-LCHlch(25.19, 59.47, 300.34°)
OKLaboklab(36.74% 0.0149 -0.148)
OKLCHoklch(36.74% 0.149 275.8)
XYZxyz(6.8019, 4.4774, 24.9269)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F8B #8B8A2E
analogous
#2E5E8B #2E2F8B #5C2E8B
triadic
#2E2F8B #8B2E2F #2F8B2E
tetradic
#2E2F8B #8B2E5E #8B8A2E #2E8B5C
square
#2E2F8B #8B2E5E #8B8A2E #2E8B5C
split-complementary
#2E2F8B #8B5C2E #5E8B2E
monochromatic
#10102F #1F1F5D #2E2F8B #3D3FB9 #6768CD

Accessibility & contrast

On white

11.08
#2E2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2E2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F8B
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F8B#FFFFFF#000000##FFFFFF
##2E2F8B1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e2f8b;
/* rgb */ color: rgb(46, 47, 139);
/* oklch */ color: oklch(36.7% 0.149 275.8);
Tailwind
colors: {
  custom: {
    50: '#7368ae',
    500: '#2e2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f8b;
$custom-light: #7368ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f8b",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 239.355,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36744,
    "c": 0.14878,
    "h": 275.8
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#2E2F8B
secondary
#B3B361
accent
#D84EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2E2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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