#2E308B#2E308B

#2E308B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.148 H 275.5°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2E308B
RGBrgb(46, 48, 139)
HSLhsl(239, 50%, 36%)
HSVhsv(239, 67%, 55%)
CMYKcmyk(66.9%, 65.5%, 0%, 45.5%)
CIE-LABlab(25.44, 29.39, -50.93)
CIE-LCHlch(25.44, 58.80, 299.99°)
OKLaboklab(36.92% 0.0141 -0.1468)
OKLCHoklch(36.92% 0.148 275.5)
XYZxyz(6.8423, 4.5582, 24.9403)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E308B #8B892E
analogous
#2E5F8B #2E308B #5B2E8B
triadic
#2E308B #8B2E30 #308B2E
tetradic
#2E308B #8B2E5F #8B892E #2E8B5B
square
#2E308B #8B2E5F #8B892E #2E8B5B
split-complementary
#2E308B #8B5B2E #5F8B2E
monochromatic
#10102F #1F205D #2E308B #3D40B9 #6769CD

Accessibility & contrast

On white

10.98
#2E308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E308B
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E308B#FFFFFF#000000##FFFFFF
##2E308B1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2e308b;
/* rgb */ color: rgb(46, 48, 139);
/* oklch */ color: oklch(36.9% 0.148 275.5);
Tailwind
colors: {
  custom: {
    50: '#7368ae',
    500: '#2e308b',
    950: '#000000',
  },
}
SCSS
$custom: #2e308b;
$custom-light: #7368ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e308b",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 238.71,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36924,
    "c": 0.14751,
    "h": 275.5
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E308B

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

Preview Lab → · Contrast checker → · Palette generator →

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