#2E3F87#2E3F87

#2E3F87 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.122 H 270.0°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#2E3F87
RGBrgb(46, 63, 135)
HSLhsl(229, 49%, 35%)
HSVhsv(229, 66%, 53%)
CMYKcmyk(65.9%, 53.3%, 0%, 47.1%)
CIE-LABlab(29.12, 17.82, -42.46)
CIE-LCHlch(29.12, 46.05, 292.77°)
OKLaboklab(39.56% 0 -0.1218)
OKLCHoklch(39.56% 0.122 270)
XYZxyz(7.2759, 5.8845, 23.6694)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E3F87 #87762E
analogous
#2E6B87 #2E3F87 #492E87
triadic
#2E3F87 #872E3F #3F872E
tetradic
#2E3F87 #872E6B #87762E #2E8749
square
#2E3F87 #872E6B #87762E #2E8749
split-complementary
#2E3F87 #87492E #6B872E
monochromatic
#0F142C #1E2A59 #2E3F87 #3E54B5 #6578CA

Accessibility & contrast

On white

9.65
#2E3F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2E3F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E3F87
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E3F87#FFFFFF#000000##FFFFFF
##2E3F871.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14498A
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2e3f87;
/* rgb */ color: rgb(46, 63, 135);
/* oklch */ color: oklch(39.6% 0.122 270.0);
Tailwind
colors: {
  custom: {
    50: '#7173aa',
    500: '#2e3f87',
    950: '#000000',
  },
}
SCSS
$custom: #2e3f87;
$custom-light: #7173aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e3f87",
  "rgb": {
    "r": 46,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 228.539,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39562,
    "c": 0.1218,
    "h": 270
  },
  "luminance": 0.05885
}

Semantic roles & 50–950 ramp

primary
#2E3F87
secondary
#B1A260
accent
#BE4FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2E3F87

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

Preview Lab → · Contrast checker → · Palette generator →

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