#2E33A7#2E33A7

#2E33A7 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.181 H 272.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#2E33A7
RGBrgb(46, 51, 167)
HSLhsl(238, 57%, 42%)
HSVhsv(238, 72%, 65%)
CMYKcmyk(72.5%, 69.5%, 0%, 34.5%)
CIE-LABlab(28.74, 37.42, -62.64)
CIE-LCHlch(28.74, 72.96, 300.85°)
OKLaboklab(40.12% 0.0091 -0.1811)
OKLCHoklch(40.12% 0.181 272.9)
XYZxyz(9.2833, 5.7376, 37.1700)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E33A7 #A7A22E
analogous
#2E70A7 #2E33A7 #662EA7
triadic
#2E33A7 #A72E33 #33A72E
tetradic
#2E33A7 #A72E70 #A7A22E #2EA766
square
#2E33A7 #A72E70 #A7A22E #2EA766
split-complementary
#2E33A7 #A7662E #70A72E
monochromatic
#141647 #212477 #2E33A7 #464CCC #767AD9

Accessibility & contrast

On white

9.78
#2E33A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2E33A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E33A7
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E33A7#FFFFFF#000000##FFFFFF
##2E33A71.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#003EA5
Tritanopia (blue-blind)
#005369
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2e33a7;
/* rgb */ color: rgb(46, 51, 167);
/* oklch */ color: oklch(40.1% 0.181 272.9);
Tailwind
colors: {
  custom: {
    50: '#796bc2',
    500: '#2e33a7',
    950: '#000000',
  },
}
SCSS
$custom: #2e33a7;
$custom-light: #796bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e33a7",
  "rgb": {
    "r": 46,
    "g": 51,
    "b": 167
  },
  "hsl": {
    "h": 237.521,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40118,
    "c": 0.18135,
    "h": 272.9
  },
  "luminance": 0.05739
}

Semantic roles & 50–950 ramp

primary
#2E33A7
secondary
#C1BE70
accent
#DA48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2E33A7

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

Preview Lab → · Contrast checker → · Palette generator →

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