#2B237C#2B237C

#2B237C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.144 H 279.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#2B237C
RGBrgb(43, 35, 124)
HSLhsl(245, 56%, 31%)
HSVhsv(245, 72%, 49%)
CMYKcmyk(65.3%, 71.8%, 0%, 51.4%)
CIE-LABlab(20.71, 31.98, -49.24)
CIE-LCHlch(20.71, 58.71, 303.00°)
OKLaboklab(33.01% 0.0226 -0.142)
OKLCHoklch(33.01% 0.144 279)
XYZxyz(5.2342, 3.1705, 19.4010)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B237C #747C23
analogous
#23477C #2B237C #57237C
triadic
#2B237C #7C2B23 #237C2B
tetradic
#2B237C #7C2347 #747C23 #237C57
square
#2B237C #7C2347 #747C23 #237C57
split-complementary
#2B237C #7C5723 #477C23
monochromatic
#0A081D #1A164C #2B237C #3C30AC #584DCD

Accessibility & contrast

On white

12.85
#2B237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2B237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B237C
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B237C#FFFFFF#000000##FFFFFF
##2B237C1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b237c;
/* rgb */ color: rgb(43, 35, 124);
/* oklch */ color: oklch(33.0% 0.144 279.0);
Tailwind
colors: {
  custom: {
    50: '#6f5fa3',
    500: '#2b237c',
    950: '#000000',
  },
}
SCSS
$custom: #2b237c;
$custom-light: #6f5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b237c",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 245.393,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33012,
    "c": 0.14382,
    "h": 279
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#2B237C
secondary
#A6AF4C
accent
#DF49D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B237C

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

Preview Lab → · Contrast checker → · Palette generator →

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