#2E306C#2E306C

#2E306C is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.3% C 0.102 H 278.1°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#2E306C
RGBrgb(46, 48, 108)
HSLhsl(238, 40%, 30%)
HSVhsv(238, 57%, 42%)
CMYKcmyk(57.4%, 55.6%, 0%, 57.6%)
CIE-LABlab(22.92, 18.20, -35.39)
CIE-LCHlch(22.92, 39.80, 297.21°)
OKLaboklab(34.27% 0.0144 -0.1012)
OKLCHoklch(34.27% 0.102 278.1)
XYZxyz(4.8896, 3.7771, 14.6559)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E306C #6C6A2E
analogous
#2E4F6C #2E306C #4B2E6C
triadic
#2E306C #6C2E30 #306C2E
tetradic
#2E306C #6C2E4F #6C6A2E #2E6C4B
square
#2E306C #6C2E4F #6C6A2E #2E6C4B
split-complementary
#2E306C #6C4B2E #4F6C2E
monochromatic
#090A16 #1C1D41 #2E306C #404397 #5B5EB9

Accessibility & contrast

On white

11.96
#2E306C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2E306C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E306C
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E306C#FFFFFF#000000##FFFFFF
##2E306C1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E396E
Deuteranopia (green-blind)
#04346B
Tritanopia (blue-blind)
#103E49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e306c;
/* rgb */ color: rgb(46, 48, 108);
/* oklch */ color: oklch(34.3% 0.102 278.1);
Tailwind
colors: {
  custom: {
    50: '#6d6896',
    500: '#2e306c',
    950: '#000000',
  },
}
SCSS
$custom: #2e306c;
$custom-light: #6d6896;
$custom-dark: #000000;
JSON
{
  "hex": "#2e306c",
  "rgb": {
    "r": 46,
    "g": 48,
    "b": 108
  },
  "hsl": {
    "h": 238.065,
    "s": 40.26,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3427,
    "c": 0.1022,
    "h": 278.1
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#2E306C
secondary
#9E9B58
accent
#CC58D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2E306C

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

Preview Lab → · Contrast checker → · Palette generator →

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