#2E2F98#2E2F98

#2E2F98 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.166 H 274.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2E2F98
RGBrgb(46, 47, 152)
HSLhsl(239, 54%, 39%)
HSVhsv(239, 70%, 60%)
CMYKcmyk(69.7%, 69.1%, 0%, 40.4%)
CIE-LABlab(26.39, 34.65, -57.39)
CIE-LCHlch(26.39, 67.03, 301.12°)
OKLaboklab(37.98% 0.0135 -0.1658)
OKLCHoklch(37.98% 0.166 274.7)
XYZxyz(7.8088, 4.8801, 30.2301)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2F98 #98972E
analogous
#2E6498 #2E2F98 #622E98
triadic
#2E2F98 #982E2F #2F982E
tetradic
#2E2F98 #982E64 #98972E #2E9862
square
#2E2F98 #982E64 #98972E #2E9862
split-complementary
#2E2F98 #98622E #64982E
monochromatic
#12123A #202069 #2E2F98 #3E40C5 #6D6ED3

Accessibility & contrast

On white

10.63
#2E2F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2E2F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2F98
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2F98#FFFFFF#000000##FFFFFF
##2E2F981.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003A96
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e2f98;
/* rgb */ color: rgb(46, 47, 152);
/* oklch */ color: oklch(38.0% 0.166 274.7);
Tailwind
colors: {
  custom: {
    50: '#7668b7',
    500: '#2e2f98',
    950: '#000000',
  },
}
SCSS
$custom: #2e2f98;
$custom-light: #7668b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2f98",
  "rgb": {
    "r": 46,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 239.434,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37983,
    "c": 0.16632,
    "h": 274.7
  },
  "luminance": 0.04881
}

Semantic roles & 50–950 ramp

primary
#2E2F98
secondary
#BAB968
accent
#DC4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2E2F98

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

Preview Lab → · Contrast checker → · Palette generator →

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