#2E30AA#2E30AA

#2E30AA is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.188 H 273.2°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#2E30AA
RGBrgb(46, 48, 170)
HSLhsl(239, 57%, 42%)
HSVhsv(239, 73%, 67%)
CMYKcmyk(72.9%, 71.8%, 0%, 33.3%)
CIE-LABlab(28.37, 40.28, -65.06)
CIE-LCHlch(28.37, 76.51, 301.76°)
OKLaboklab(39.94% 0.0104 -0.1882)
OKLCHoklch(39.94% 0.188 273.2)
XYZxyz(9.4369, 5.5961, 38.6052)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E30AA #AAA82E
analogous
#2E6EAA #2E30AA #6A2EAA
triadic
#2E30AA #AA2E30 #30AA2E
tetradic
#2E30AA #AA2E6E #AAA82E #2EAA6A
square
#2E30AA #AA2E6E #AAA82E #2EAA6A
split-complementary
#2E30AA #AA6A2E #6EAA2E
monochromatic
#14154A #21227A #2E30AA #484ACD #787ADA

Accessibility & contrast

On white

9.91
#2E30AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2E30AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E30AA
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E30AA#FFFFFF#000000##FFFFFF
##2E30AA1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#003DA8
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e30aa;
/* rgb */ color: rgb(46, 48, 170);
/* oklch */ color: oklch(39.9% 0.188 273.2);
Tailwind
colors: {
  custom: {
    50: '#7a69c4',
    500: '#2e30aa',
    950: '#000000',
  },
}
SCSS
$custom: #2e30aa;
$custom-light: #7a69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e30aa",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 239.032,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.3994,
    "c": 0.18846,
    "h": 273.2
  },
  "luminance": 0.05597
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E30AA

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

Preview Lab → · Contrast checker → · Palette generator →

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