#2B237A#2B237A

#2B237A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.141 H 279.4°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2B237A
RGBrgb(43, 35, 122)
HSLhsl(246, 55%, 31%)
HSVhsv(246, 71%, 48%)
CMYKcmyk(64.8%, 71.3%, 0%, 52.2%)
CIE-LABlab(20.52, 31.29, -48.29)
CIE-LCHlch(20.52, 57.54, 302.94°)
OKLaboklab(32.81% 0.0229 -0.1392)
OKLCHoklch(32.81% 0.141 279.4)
XYZxyz(5.1090, 3.1204, 18.7416)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B237A #727A23
analogous
#23467A #2B237A #56237A
triadic
#2B237A #7A2B23 #237A2B
tetradic
#2B237A #7A2346 #727A23 #237A56
square
#2B237A #7A2346 #727A23 #237A56
split-complementary
#2B237A #7A5623 #467A23
monochromatic
#09081B #1A154A #2B237A #3C31AA #584CCC

Accessibility & contrast

On white

12.93
#2B237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B237A
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B237A#FFFFFF#000000##FFFFFF
##2B237A1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b237a;
/* rgb */ color: rgb(43, 35, 122);
/* oklch */ color: oklch(32.8% 0.141 279.4);
Tailwind
colors: {
  custom: {
    50: '#6f5fa1',
    500: '#2b237a',
    950: '#000000',
  },
}
SCSS
$custom: #2b237a;
$custom-light: #6f5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b237a",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 245.517,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32813,
    "c": 0.14111,
    "h": 279.4
  },
  "luminance": 0.03121
}

Semantic roles & 50–950 ramp

primary
#2B237A
secondary
#A4AD4C
accent
#DF49D1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B237A

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

Preview Lab → · Contrast checker → · Palette generator →

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