#2B237E#2B237E

#2B237E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.146 H 278.7°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2B237E
RGBrgb(43, 35, 126)
HSLhsl(245, 57%, 32%)
HSVhsv(245, 72%, 49%)
CMYKcmyk(65.9%, 72.2%, 0%, 50.6%)
CIE-LABlab(20.91, 32.67, -50.19)
CIE-LCHlch(20.91, 59.89, 303.06°)
OKLaboklab(33.21% 0.0223 -0.1448)
OKLCHoklch(33.21% 0.147 278.7)
XYZxyz(5.3620, 3.2216, 20.0739)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B237E #767E23
analogous
#23497E #2B237E #59237E
triadic
#2B237E #7E2B23 #237E2B
tetradic
#2B237E #7E2349 #767E23 #237E59
square
#2B237E #7E2349 #767E23 #237E59
split-complementary
#2B237E #7E5923 #497E23
monochromatic
#0A081E #1B164E #2B237E #3B30AE #594ECE

Accessibility & contrast

On white

12.77
#2B237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2B237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B237E
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B237E#FFFFFF#000000##FFFFFF
##2B237E1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b237e;
/* rgb */ color: rgb(43, 35, 126);
/* oklch */ color: oklch(33.2% 0.146 278.7);
Tailwind
colors: {
  custom: {
    50: '#705fa4',
    500: '#2b237e',
    950: '#000000',
  },
}
SCSS
$custom: #2b237e;
$custom-light: #705fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b237e",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 245.275,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33213,
    "c": 0.1465,
    "h": 278.7
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#2B237E
secondary
#A8B04C
accent
#E048D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B237E

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

Preview Lab → · Contrast checker → · Palette generator →

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