#2B237B#2B237B

#2B237B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.142 H 279.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#2B237B
RGBrgb(43, 35, 123)
HSLhsl(245, 56%, 31%)
HSVhsv(245, 72%, 48%)
CMYKcmyk(65%, 71.5%, 0%, 51.8%)
CIE-LABlab(20.62, 31.63, -48.77)
CIE-LCHlch(20.62, 58.13, 302.97°)
OKLaboklab(32.91% 0.0228 -0.1406)
OKLCHoklch(32.91% 0.142 279.2)
XYZxyz(5.1713, 3.1453, 19.0696)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B237B #737B23
analogous
#23477B #2B237B #57237B
triadic
#2B237B #7B2B23 #237B2B
tetradic
#2B237B #7B2347 #737B23 #237B57
square
#2B237B #7B2347 #737B23 #237B57
split-complementary
#2B237B #7B5723 #477B23
monochromatic
#0A081C #1A154B #2B237B #3C31AB #584CCC

Accessibility & contrast

On white

12.89
#2B237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B237B
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B237B#FFFFFF#000000##FFFFFF
##2B237B1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b237b;
/* rgb */ color: rgb(43, 35, 123);
/* oklch */ color: oklch(32.9% 0.142 279.2);
Tailwind
colors: {
  custom: {
    50: '#6f5fa2',
    500: '#2b237b',
    950: '#000000',
  },
}
SCSS
$custom: #2b237b;
$custom-light: #6f5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b237b",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 245.455,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32913,
    "c": 0.14246,
    "h": 279.2
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#2B237B
secondary
#A5AE4C
accent
#DF49D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B237B

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

Preview Lab → · Contrast checker → · Palette generator →

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