#2E30A5#2E30A5

#2E30A5 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.182 H 273.5°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#2E30A5
RGBrgb(46, 48, 165)
HSLhsl(239, 56%, 41%)
HSVhsv(239, 72%, 65%)
CMYKcmyk(72.1%, 70.9%, 0%, 35.3%)
CIE-LABlab(27.87, 38.56, -62.86)
CIE-LCHlch(27.87, 73.74, 301.52°)
OKLaboklab(39.43% 0.0111 -0.1818)
OKLCHoklch(39.43% 0.182 273.5)
XYZxyz(8.9729, 5.4105, 36.1615)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E30A5 #A5A32E
analogous
#2E6CA5 #2E30A5 #682EA5
triadic
#2E30A5 #A52E30 #30A52E
tetradic
#2E30A5 #A52E6C #A5A32E #2EA568
square
#2E30A5 #A52E6C #A5A32E #2EA568
split-complementary
#2E30A5 #A5682E #6CA52E
monochromatic
#131445 #212275 #2E30A5 #4547CB #7577D8

Accessibility & contrast

On white

10.09
#2E30A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2E30A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E30A5
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E30A5#FFFFFF#000000##FFFFFF
##2E30A51.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2e30a5;
/* rgb */ color: rgb(46, 48, 165);
/* oklch */ color: oklch(39.4% 0.182 273.5);
Tailwind
colors: {
  custom: {
    50: '#7969c1',
    500: '#2e30a5',
    950: '#000000',
  },
}
SCSS
$custom: #2e30a5;
$custom-light: #7969c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e30a5",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 238.992,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39434,
    "c": 0.1821,
    "h": 273.5
  },
  "luminance": 0.05411
}

Semantic roles & 50–950 ramp

primary
#2E30A5
secondary
#C0BF6F
accent
#DD48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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