#2B237F#2B237F

#2B237F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.148 H 278.6°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2B237F
RGBrgb(43, 35, 127)
HSLhsl(245, 57%, 32%)
HSVhsv(245, 72%, 50%)
CMYKcmyk(66.1%, 72.4%, 0%, 50.2%)
CIE-LABlab(21.01, 33.01, -50.66)
CIE-LCHlch(21.01, 60.47, 303.09°)
OKLaboklab(33.31% 0.0221 -0.1462)
OKLCHoklch(33.31% 0.148 278.6)
XYZxyz(5.4268, 3.2475, 20.4154)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B237F #777F23
analogous
#23497F #2B237F #59237F
triadic
#2B237F #7F2B23 #237F2B
tetradic
#2B237F #7F2349 #777F23 #237F59
square
#2B237F #7F2349 #777F23 #237F59
split-complementary
#2B237F #7F5923 #497F23
monochromatic
#0B091F #1B164F #2B237F #3B30AF #594ECE

Accessibility & contrast

On white

12.73
#2B237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2B237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B237F
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B237F#FFFFFF#000000##FFFFFF
##2B237F1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b237f;
/* rgb */ color: rgb(43, 35, 127);
/* oklch */ color: oklch(33.3% 0.148 278.6);
Tailwind
colors: {
  custom: {
    50: '#705fa5',
    500: '#2b237f',
    950: '#000000',
  },
}
SCSS
$custom: #2b237f;
$custom-light: #705fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b237f",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 245.217,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33314,
    "c": 0.14784,
    "h": 278.6
  },
  "luminance": 0.03248
}

Semantic roles & 50–950 ramp

primary
#2B237F
secondary
#A9B14C
accent
#E048D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B237F

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

Preview Lab → · Contrast checker → · Palette generator →

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