#2E30AB#2E30AB

#2E30AB is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.190 H 273.1°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2E30AB
RGBrgb(46, 48, 171)
HSLhsl(239, 58%, 43%)
HSVhsv(239, 73%, 67%)
CMYKcmyk(73.1%, 71.9%, 0%, 32.9%)
CIE-LABlab(28.47, 40.62, -65.49)
CIE-LCHlch(28.47, 77.07, 301.81°)
OKLaboklab(40.04% 0.0102 -0.1894)
OKLCHoklch(40.04% 0.19 273.1)
XYZxyz(9.5319, 5.6341, 39.1053)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E30AB #ABA92E
analogous
#2E6EAB #2E30AB #6A2EAB
triadic
#2E30AB #AB2E30 #30AB2E
tetradic
#2E30AB #AB2E6E #ABA92E #2EAB6A
square
#2E30AB #AB2E6E #ABA92E #2EAB6A
split-complementary
#2E30AB #AB6A2E #6EAB2E
monochromatic
#14154B #21227B #2E30AB #484ACE #797ADB

Accessibility & contrast

On white

9.87
#2E30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2E30AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E30AB
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E30AB#FFFFFF#000000##FFFFFF
##2E30AB1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#003DA9
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e30ab;
/* rgb */ color: rgb(46, 48, 171);
/* oklch */ color: oklch(40.0% 0.190 273.1);
Tailwind
colors: {
  custom: {
    50: '#7a69c5',
    500: '#2e30ab',
    950: '#000000',
  },
}
SCSS
$custom: #2e30ab;
$custom-light: #7a69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e30ab",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 239.04,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40041,
    "c": 0.18972,
    "h": 273.1
  },
  "luminance": 0.05635
}

Semantic roles & 50–950 ramp

primary
#2E30AB
secondary
#C3C272
accent
#DE47E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2E30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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