#2E307F#2E307F

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

Color values

HEX#2E307F
RGBrgb(46, 48, 127)
HSLhsl(239, 47%, 34%)
HSVhsv(239, 64%, 50%)
CMYKcmyk(63.8%, 62.2%, 0%, 50.2%)
CIE-LABlab(24.41, 25.06, -45.10)
CIE-LCHlch(24.41, 51.60, 299.06°)
OKLaboklab(35.85% 0.0147 -0.1297)
OKLCHoklch(35.85% 0.131 276.5)
XYZxyz(6.0132, 4.2266, 20.5735)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E307F #7F7D2E
analogous
#2E597F #2E307F #552E7F
triadic
#2E307F #7F2E30 #307F2E
tetradic
#2E307F #7F2E59 #7F7D2E #2E7F55
square
#2E307F #7F2E59 #7F7D2E #2E7F55
split-complementary
#2E307F #7F552E #597F2E
monochromatic
#0D0E25 #1E1F52 #2E307F #3E41AC #6164C6

Accessibility & contrast

On white

11.38
#2E307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2E307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E307F
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E307F#FFFFFF#000000##FFFFFF
##2E307F1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e307f;
/* rgb */ color: rgb(46, 48, 127);
/* oklch */ color: oklch(35.8% 0.131 276.5);
Tailwind
colors: {
  custom: {
    50: '#7068a5',
    500: '#2e307f',
    950: '#000000',
  },
}
SCSS
$custom: #2e307f;
$custom-light: #7068a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e307f",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 238.519,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35846,
    "c": 0.13056,
    "h": 276.5
  },
  "luminance": 0.04227
}

Semantic roles & 50–950 ramp

primary
#2E307F
secondary
#ADAB5C
accent
#D351D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2E307F

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

Preview Lab → · Contrast checker → · Palette generator →

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