#2E307D#2E307D

#2E307D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.128 H 276.6°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#2E307D
RGBrgb(46, 48, 125)
HSLhsl(238, 46%, 34%)
HSVhsv(238, 63%, 49%)
CMYKcmyk(63.2%, 61.6%, 0%, 51%)
CIE-LABlab(24.24, 24.34, -44.11)
CIE-LCHlch(24.24, 50.38, 298.89°)
OKLaboklab(35.67% 0.0148 -0.1268)
OKLCHoklch(35.67% 0.128 276.6)
XYZxyz(5.8841, 4.1750, 19.8938)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E307D #7D7B2E
analogous
#2E577D #2E307D #532E7D
triadic
#2E307D #7D2E30 #307D2E
tetradic
#2E307D #7D2E57 #7D7B2E #2E7D53
square
#2E307D #7D2E57 #7D7B2E #2E7D53
split-complementary
#2E307D #7D532E #577D2E
monochromatic
#0D0E24 #1E1F50 #2E307D #3E41AA #6163C5

Accessibility & contrast

On white

11.44
#2E307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2E307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E307D
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E307D#FFFFFF#000000##FFFFFF
##2E307D1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e307d;
/* rgb */ color: rgb(46, 48, 125);
/* oklch */ color: oklch(35.7% 0.128 276.6);
Tailwind
colors: {
  custom: {
    50: '#7068a3',
    500: '#2e307d',
    950: '#000000',
  },
}
SCSS
$custom: #2e307d;
$custom-light: #7068a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e307d",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 238.481,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35672,
    "c": 0.12767,
    "h": 276.6
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#2E307D
secondary
#ABA95B
accent
#D352D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E307D

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

Preview Lab → · Contrast checker → · Palette generator →

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