#2E2F8F#2E2F8F

#2E2F8F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.154 H 275.4°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2E2F8F
RGBrgb(46, 47, 143)
HSLhsl(239, 51%, 37%)
HSVhsv(239, 68%, 56%)
CMYKcmyk(67.8%, 67.1%, 0%, 43.9%)
CIE-LABlab(25.55, 31.47, -53.22)
CIE-LCHlch(25.55, 61.83, 300.59°)
OKLaboklab(37.12% 0.0145 -0.1536)
OKLCHoklch(37.12% 0.154 275.4)
XYZxyz(7.0995, 4.5964, 26.4943)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F8F #8F8E2E
analogous
#2E608F #2E2F8F #5D2E8F
triadic
#2E2F8F #8F2E2F #2F8F2E
tetradic
#2E2F8F #8F2E60 #8F8E2E #2E8F5D
square
#2E2F8F #8F2E60 #8F8E2E #2E8F5D
split-complementary
#2E2F8F #8F5D2E #608F2E
monochromatic
#101132 #1F2061 #2E2F8F #3D3EBD #696ACF

Accessibility & contrast

On white

10.94
#2E2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2E2F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F8F
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F8F#FFFFFF#000000##FFFFFF
##2E2F8F1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e2f8f;
/* rgb */ color: rgb(46, 47, 143);
/* oklch */ color: oklch(37.1% 0.154 275.4);
Tailwind
colors: {
  custom: {
    50: '#7468b1',
    500: '#2e2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f8f;
$custom-light: #7468b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f8f",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 239.381,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37119,
    "c": 0.15426,
    "h": 275.4
  },
  "luminance": 0.04597
}

Semantic roles & 50–950 ramp

primary
#2E2F8F
secondary
#B6B563
accent
#D94DDB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2E2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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