#2E308E#2E308E

#2E308E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.152 H 275.2°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2E308E
RGBrgb(46, 48, 142)
HSLhsl(239, 51%, 37%)
HSVhsv(239, 68%, 56%)
CMYKcmyk(67.6%, 66.2%, 0%, 44.3%)
CIE-LABlab(25.70, 30.46, -52.35)
CIE-LCHlch(25.70, 60.57, 300.20°)
OKLaboklab(37.2% 0.0138 -0.151)
OKLCHoklch(37.2% 0.152 275.2)
XYZxyz(7.0645, 4.6471, 26.1106)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E308E #8E8C2E
analogous
#2E608E #2E308E #5C2E8E
triadic
#2E308E #8E2E30 #308E2E
tetradic
#2E308E #8E2E60 #8E8C2E #2E8E5C
square
#2E308E #8E2E60 #8E8C2E #2E8E5C
split-complementary
#2E308E #8E5C2E #608E2E
monochromatic
#101132 #1F2060 #2E308E #3D40BC #686ACE

Accessibility & contrast

On white

10.88
#2E308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2E308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E308E
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E308E#FFFFFF#000000##FFFFFF
##2E308E1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e308e;
/* rgb */ color: rgb(46, 48, 142);
/* oklch */ color: oklch(37.2% 0.152 275.2);
Tailwind
colors: {
  custom: {
    50: '#7368b0',
    500: '#2e308e',
    950: '#000000',
  },
}
SCSS
$custom: #2e308e;
$custom-light: #7368b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e308e",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 238.75,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37202,
    "c": 0.15165,
    "h": 275.2
  },
  "luminance": 0.04648
}

Semantic roles & 50–950 ramp

primary
#2E308E
secondary
#B5B363
accent
#D84DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2E308E

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

Preview Lab → · Contrast checker → · Palette generator →

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