#2B237D#2B237D

#2B237D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.145 H 278.9°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#2B237D
RGBrgb(43, 35, 125)
HSLhsl(245, 56%, 31%)
HSVhsv(245, 72%, 49%)
CMYKcmyk(65.6%, 72%, 0%, 51%)
CIE-LABlab(20.81, 32.32, -49.72)
CIE-LCHlch(20.81, 59.30, 303.03°)
OKLaboklab(33.11% 0.0224 -0.1434)
OKLCHoklch(33.11% 0.145 278.9)
XYZxyz(5.2978, 3.1959, 19.7358)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B237D #757D23
analogous
#23487D #2B237D #58237D
triadic
#2B237D #7D2B23 #237D2B
tetradic
#2B237D #7D2348 #757D23 #237D58
square
#2B237D #7D2348 #757D23 #237D58
split-complementary
#2B237D #7D5823 #487D23
monochromatic
#0A081D #1B164D #2B237D #3B30AD #594DCD

Accessibility & contrast

On white

12.81
#2B237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B237D
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B237D#FFFFFF#000000##FFFFFF
##2B237D1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b237d;
/* rgb */ color: rgb(43, 35, 125);
/* oklch */ color: oklch(33.1% 0.145 278.9);
Tailwind
colors: {
  custom: {
    50: '#705fa4',
    500: '#2b237d',
    950: '#000000',
  },
}
SCSS
$custom: #2b237d;
$custom-light: #705fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b237d",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 245.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33112,
    "c": 0.14516,
    "h": 278.9
  },
  "luminance": 0.03196
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B237D

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

Preview Lab → · Contrast checker → · Palette generator →

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