#2E307E#2E307E

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

Color values

HEX#2E307E
RGBrgb(46, 48, 126)
HSLhsl(239, 47%, 34%)
HSVhsv(239, 63%, 49%)
CMYKcmyk(63.5%, 61.9%, 0%, 50.6%)
CIE-LABlab(24.32, 24.70, -44.60)
CIE-LCHlch(24.32, 50.99, 298.98°)
OKLaboklab(35.76% 0.0148 -0.1283)
OKLCHoklch(35.76% 0.129 276.6)
XYZxyz(5.9483, 4.2006, 20.2320)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E307E #7E7C2E
analogous
#2E587E #2E307E #542E7E
triadic
#2E307E #7E2E30 #307E2E
tetradic
#2E307E #7E2E58 #7E7C2E #2E7E54
square
#2E307E #7E2E58 #7E7C2E #2E7E54
split-complementary
#2E307E #7E542E #587E2E
monochromatic
#0D0E24 #1E1F51 #2E307E #3E41AB #6164C5

Accessibility & contrast

On white

11.41
#2E307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E307E
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E307E#FFFFFF#000000##FFFFFF
##2E307E1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e307e;
/* rgb */ color: rgb(46, 48, 126);
/* oklch */ color: oklch(35.8% 0.129 276.6);
Tailwind
colors: {
  custom: {
    50: '#7068a4',
    500: '#2e307e',
    950: '#000000',
  },
}
SCSS
$custom: #2e307e;
$custom-light: #7068a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e307e",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 238.5,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35759,
    "c": 0.12912,
    "h": 276.6
  },
  "luminance": 0.04201
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E307E

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

Preview Lab → · Contrast checker → · Palette generator →

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