#2B2E98#2B2E98

#2B2E98 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.168 H 273.6°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2B2E98
RGBrgb(43, 46, 152)
HSLhsl(238, 56%, 38%)
HSVhsv(238, 72%, 60%)
CMYKcmyk(71.7%, 69.7%, 0%, 40.4%)
CIE-LABlab(25.96, 34.90, -58.10)
CIE-LCHlch(25.96, 67.77, 301.00°)
OKLaboklab(37.62% 0.0105 -0.1679)
OKLCHoklch(37.62% 0.168 273.6)
XYZxyz(7.6389, 4.7338, 30.2108)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2E98 #98952B
analogous
#2B6498 #2B2E98 #5E2B98
triadic
#2B2E98 #982B2E #2E982B
tetradic
#2B2E98 #982B64 #98952B #2B985E
square
#2B2E98 #982B64 #98952B #2B985E
split-complementary
#2B2E98 #985E2B #64982B
monochromatic
#101139 #1E2068 #2B2E98 #393DC7 #696CD5

Accessibility & contrast

On white

10.79
#2B2E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2B2E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2E98
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2E98#FFFFFF#000000##FFFFFF
##2B2E981.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b2e98;
/* rgb */ color: rgb(43, 46, 152);
/* oklch */ color: oklch(37.6% 0.168 273.6);
Tailwind
colors: {
  custom: {
    50: '#7567b7',
    500: '#2b2e98',
    950: '#000000',
  },
}
SCSS
$custom: #2b2e98;
$custom-light: #7567b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2e98",
  "rgb": {
    "r": 43,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 238.349,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37622,
    "c": 0.16826,
    "h": 273.6
  },
  "luminance": 0.04735
}

Semantic roles & 50–950 ramp

primary
#2B2E98
secondary
#BBB964
accent
#DB49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2B2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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