#2B2398#2B2398

#2B2398 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.180 H 275.4°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#2B2398
RGBrgb(43, 35, 152)
HSLhsl(244, 63%, 37%)
HSVhsv(244, 77%, 60%)
CMYKcmyk(71.7%, 77%, 0%, 40.4%)
CIE-LABlab(23.61, 41.43, -61.97)
CIE-LCHlch(23.61, 74.55, 303.77°)
OKLaboklab(35.94% 0.017 -0.1792)
OKLCHoklch(35.94% 0.18 275.4)
XYZxyz(7.2629, 3.9820, 30.0855)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2398 #909823
analogous
#235598 #2B2398 #662398
triadic
#2B2398 #982B23 #23982B
tetradic
#2B2398 #982355 #909823 #239866
square
#2B2398 #982355 #909823 #239866
split-complementary
#2B2398 #986623 #559823
monochromatic
#0F0C35 #1D1866 #2B2398 #392ECA #655CD9

Accessibility & contrast

On white

11.69
#2B2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2B2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2398
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2398#FFFFFF#000000##FFFFFF
##2B23981.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b2398;
/* rgb */ color: rgb(43, 35, 152);
/* oklch */ color: oklch(35.9% 0.180 275.4);
Tailwind
colors: {
  custom: {
    50: '#7660b8',
    500: '#2b2398',
    950: '#000000',
  },
}
SCSS
$custom: #2b2398;
$custom-light: #7660b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2398",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 244.103,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35944,
    "c": 0.17997,
    "h": 275.4
  },
  "luminance": 0.03983
}

Semantic roles & 50–950 ramp

primary
#2B2398
secondary
#B7BE59
accent
#E642DA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2B2398

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

Preview Lab → · Contrast checker → · Palette generator →

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