#2E306F#2E306F

#2E306F is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.5% C 0.107 H 277.8°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#2E306F
RGBrgb(46, 48, 111)
HSLhsl(238, 41%, 31%)
HSVhsv(238, 59%, 44%)
CMYKcmyk(58.6%, 56.8%, 0%, 56.5%)
CIE-LABlab(23.14, 19.28, -36.97)
CIE-LCHlch(23.14, 41.69, 297.54°)
OKLaboklab(34.51% 0.0146 -0.1058)
OKLCHoklch(34.51% 0.107 277.8)
XYZxyz(5.0520, 3.8421, 15.5112)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E306F #6F6D2E
analogous
#2E506F #2E306F #4C2E6F
triadic
#2E306F #6F2E30 #306F2E
tetradic
#2E306F #6F2E50 #6F6D2E #2E6F4C
square
#2E306F #6F2E50 #6F6D2E #2E6F4C
split-complementary
#2E306F #6F4C2E #506F2E
monochromatic
#0A0B18 #1C1D44 #2E306F #40439A #5C5FBB

Accessibility & contrast

On white

11.88
#2E306F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2E306F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E306F
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E306F#FFFFFF#000000##FFFFFF
##2E306F1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093A71
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#0C3E4A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e306f;
/* rgb */ color: rgb(46, 48, 111);
/* oklch */ color: oklch(34.5% 0.107 277.8);
Tailwind
colors: {
  custom: {
    50: '#6d6899',
    500: '#2e306f',
    950: '#000000',
  },
}
SCSS
$custom: #2e306f;
$custom-light: #6d6899;
$custom-dark: #000000;
JSON
{
  "hex": "#2e306f",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 111
  },
  "hsl": {
    "h": 238.154,
    "s": 41.401,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34507,
    "c": 0.10681,
    "h": 277.8
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#2E306F
secondary
#A09E58
accent
#CD57D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2E306F

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

Preview Lab → · Contrast checker → · Palette generator →

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