#2E308F#2E308F

#2E308F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.153 H 275.2°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2E308F
RGBrgb(46, 48, 143)
HSLhsl(239, 51%, 37%)
HSVhsv(239, 68%, 56%)
CMYKcmyk(67.8%, 66.4%, 0%, 43.9%)
CIE-LABlab(25.79, 30.82, -52.82)
CIE-LCHlch(25.79, 61.16, 300.26°)
OKLaboklab(37.3% 0.0137 -0.1524)
OKLCHoklch(37.3% 0.153 275.2)
XYZxyz(7.1400, 4.6773, 26.5078)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E308F #8F8D2E
analogous
#2E618F #2E308F #5D2E8F
triadic
#2E308F #8F2E30 #308F2E
tetradic
#2E308F #8F2E61 #8F8D2E #2E8F5D
square
#2E308F #8F2E61 #8F8D2E #2E8F5D
split-complementary
#2E308F #8F5D2E #618F2E
monochromatic
#101132 #1F2061 #2E308F #3D40BD #696BCF

Accessibility & contrast

On white

10.85
#2E308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2E308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E308F
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E308F#FFFFFF#000000##FFFFFF
##2E308F1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e308f;
/* rgb */ color: rgb(46, 48, 143);
/* oklch */ color: oklch(37.3% 0.153 275.2);
Tailwind
colors: {
  custom: {
    50: '#7468b1',
    500: '#2e308f',
    950: '#000000',
  },
}
SCSS
$custom: #2e308f;
$custom-light: #7468b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e308f",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 238.763,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37295,
    "c": 0.15302,
    "h": 275.2
  },
  "luminance": 0.04678
}

Semantic roles & 50–950 ramp

primary
#2E308F
secondary
#B6B463
accent
#D84DDB
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2E308F

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

Preview Lab → · Contrast checker → · Palette generator →

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