#2E308A#2E308A

#2E308A is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.146 H 275.6°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2E308A
RGBrgb(46, 48, 138)
HSLhsl(239, 50%, 36%)
HSVhsv(239, 67%, 54%)
CMYKcmyk(66.7%, 65.2%, 0%, 45.9%)
CIE-LABlab(25.35, 29.03, -50.45)
CIE-LCHlch(25.35, 58.21, 299.92°)
OKLaboklab(36.83% 0.0142 -0.1454)
OKLCHoklch(36.83% 0.146 275.6)
XYZxyz(6.7696, 4.5291, 24.5573)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E308A #8A882E
analogous
#2E5E8A #2E308A #5A2E8A
triadic
#2E308A #8A2E30 #308A2E
tetradic
#2E308A #8A2E5E #8A882E #2E8A5A
square
#2E308A #8A2E5E #8A882E #2E8A5A
split-complementary
#2E308A #8A5A2E #5E8A2E
monochromatic
#0F102E #1F205C #2E308A #3D40B8 #6669CC

Accessibility & contrast

On white

11.02
#2E308A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2E308A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E308A
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E308A#FFFFFF#000000##FFFFFF
##2E308A1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e308a;
/* rgb */ color: rgb(46, 48, 138);
/* oklch */ color: oklch(36.8% 0.146 275.6);
Tailwind
colors: {
  custom: {
    50: '#7368ad',
    500: '#2e308a',
    950: '#000000',
  },
}
SCSS
$custom: #2e308a;
$custom-light: #7368ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e308a",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 138
  },
  "hsl": {
    "h": 238.696,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36832,
    "c": 0.14613,
    "h": 275.6
  },
  "luminance": 0.0453
}

Semantic roles & 50–950 ramp

primary
#2E308A
secondary
#B3B161
accent
#D64EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2E308A

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

Preview Lab → · Contrast checker → · Palette generator →

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