#2E336C#2E336C

#2E336C is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.9% C 0.098 H 276.3°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2E336C
RGBrgb(46, 51, 108)
HSLhsl(235, 40%, 30%)
HSVhsv(235, 57%, 42%)
CMYKcmyk(57.4%, 52.8%, 0%, 57.6%)
CIE-LABlab(23.77, 16.12, -34.02)
CIE-LCHlch(23.77, 37.65, 295.35°)
OKLaboklab(34.91% 0.0107 -0.0971)
OKLCHoklch(34.91% 0.098 276.3)
XYZxyz(5.0165, 4.0309, 14.6981)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E336C #6C672E
analogous
#2E526C #2E336C #482E6C
triadic
#2E336C #6C2E33 #336C2E
tetradic
#2E336C #6C2E52 #6C672E #2E6C48
square
#2E336C #6C2E52 #6C672E #2E6C48
split-complementary
#2E336C #6C482E #526C2E
monochromatic
#090A16 #1C1F41 #2E336C #404797 #5B63B9

Accessibility & contrast

On white

11.63
#2E336C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2E336C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E336C
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E336C#FFFFFF#000000##FFFFFF
##2E336C1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163B6E
Deuteranopia (green-blind)
#0E366B
Tritanopia (blue-blind)
#0F404A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2e336c;
/* rgb */ color: rgb(46, 51, 108);
/* oklch */ color: oklch(34.9% 0.098 276.3);
Tailwind
colors: {
  custom: {
    50: '#6c6a96',
    500: '#2e336c',
    950: '#000000',
  },
}
SCSS
$custom: #2e336c;
$custom-light: #6c6a96;
$custom-dark: #000000;
JSON
{
  "hex": "#2e336c",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 108
  },
  "hsl": {
    "h": 235.161,
    "s": 40.26,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34911,
    "c": 0.09771,
    "h": 276.3
  },
  "luminance": 0.04031
}

Semantic roles & 50–950 ramp

primary
#2E336C
secondary
#9E9858
accent
#C658D0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #2E336C

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

Preview Lab → · Contrast checker → · Palette generator →

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