#2B2E97#2B2E97

#2B2E97 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.167 H 273.7°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#2B2E97
RGBrgb(43, 46, 151)
HSLhsl(238, 56%, 38%)
HSVhsv(238, 72%, 59%)
CMYKcmyk(71.5%, 69.5%, 0%, 40.8%)
CIE-LABlab(25.87, 34.55, -57.64)
CIE-LCHlch(25.87, 67.20, 300.94°)
OKLaboklab(37.52% 0.0107 -0.1666)
OKLCHoklch(37.52% 0.167 273.7)
XYZxyz(7.5573, 4.7012, 29.7813)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2E97 #97942B
analogous
#2B6497 #2B2E97 #5E2B97
triadic
#2B2E97 #972B2E #2E972B
tetradic
#2B2E97 #972B64 #97942B #2B975E
square
#2B2E97 #972B64 #97942B #2B975E
split-complementary
#2B2E97 #975E2B #64972B
monochromatic
#101138 #1D1F67 #2B2E97 #393DC7 #686BD4

Accessibility & contrast

On white

10.82
#2B2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2B2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2E97
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2E97#FFFFFF#000000##FFFFFF
##2B2E971.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b2e97;
/* rgb */ color: rgb(43, 46, 151);
/* oklch */ color: oklch(37.5% 0.167 273.7);
Tailwind
colors: {
  custom: {
    50: '#7467b7',
    500: '#2b2e97',
    950: '#000000',
  },
}
SCSS
$custom: #2b2e97;
$custom-light: #7467b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2e97",
  "rgb": {
    "r": 43,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 238.333,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37523,
    "c": 0.16694,
    "h": 273.7
  },
  "luminance": 0.04702
}

Semantic roles & 50–950 ramp

primary
#2B2E97
secondary
#BBB863
accent
#DB49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2B2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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