#2E34B4#2E34B4

#2E34B4 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.6% C 0.197 H 272.0°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2E34B4
RGBrgb(46, 52, 180)
HSLhsl(237, 59%, 44%)
HSVhsv(237, 74%, 71%)
CMYKcmyk(74.4%, 71.1%, 0%, 29.4%)
CIE-LABlab(30.23, 41.32, -67.97)
CIE-LCHlch(30.23, 79.54, 301.30°)
OKLaboklab(41.58% 0.0068 -0.1967)
OKLCHoklch(41.58% 0.197 272)
XYZxyz(10.5901, 6.3310, 43.8351)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E34B4 #B4AE2E
analogous
#2E77B4 #2E34B4 #6B2EB4
triadic
#2E34B4 #B42E34 #34B42E
tetradic
#2E34B4 #B42E77 #B4AE2E #2EB46B
square
#2E34B4 #B42E77 #B4AE2E #2EB46B
split-complementary
#2E34B4 #B46B2E #77B42E
monochromatic
#151853 #222683 #2E34B4 #4E53D2 #7E83DE

Accessibility & contrast

On white

9.27
#2E34B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2E34B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E34B4
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E34B4#FFFFFF#000000##FFFFFF
##2E34B41.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0041B2
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e34b4;
/* rgb */ color: rgb(46, 52, 180);
/* oklch */ color: oklch(41.6% 0.197 272.0);
Tailwind
colors: {
  custom: {
    50: '#7c6ccc',
    500: '#2e34b4',
    950: '#000000',
  },
}
SCSS
$custom: #2e34b4;
$custom-light: #7c6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e34b4",
  "rgb": {
    "r": 46,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 237.313,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41576,
    "c": 0.19679,
    "h": 272
  },
  "luminance": 0.06332
}

Semantic roles & 50–950 ramp

primary
#2E34B4
secondary
#C7C377
accent
#DB45E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2E34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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