#2E308C#2E308C

#2E308C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.149 H 275.4°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#2E308C
RGBrgb(46, 48, 140)
HSLhsl(239, 51%, 36%)
HSVhsv(239, 67%, 55%)
CMYKcmyk(67.1%, 65.7%, 0%, 45.1%)
CIE-LABlab(25.53, 29.75, -51.40)
CIE-LCHlch(25.53, 59.39, 300.06°)
OKLaboklab(37.02% 0.014 -0.1482)
OKLCHoklch(37.02% 0.149 275.4)
XYZxyz(6.9157, 4.5876, 25.3269)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E308C #8C8A2E
analogous
#2E5F8C #2E308C #5B2E8C
triadic
#2E308C #8C2E30 #308C2E
tetradic
#2E308C #8C2E5F #8C8A2E #2E8C5B
square
#2E308C #8C2E5F #8C8A2E #2E8C5B
split-complementary
#2E308C #8C5B2E #5F8C2E
monochromatic
#101030 #1F205E #2E308C #3D40BA #6769CD

Accessibility & contrast

On white

10.95
#2E308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2E308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E308C
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E308C#FFFFFF#000000##FFFFFF
##2E308C1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e308c;
/* rgb */ color: rgb(46, 48, 140);
/* oklch */ color: oklch(37.0% 0.149 275.4);
Tailwind
colors: {
  custom: {
    50: '#7368ae',
    500: '#2e308c',
    950: '#000000',
  },
}
SCSS
$custom: #2e308c;
$custom-light: #7368ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e308c",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 238.723,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37016,
    "c": 0.1489,
    "h": 275.4
  },
  "luminance": 0.04588
}

Semantic roles & 50–950 ramp

primary
#2E308C
secondary
#B4B262
accent
#D74EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2E308C

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

Preview Lab → · Contrast checker → · Palette generator →

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