#2B236F#2B236F

#2B236F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.126 H 281.2°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#2B236F
RGBrgb(43, 35, 111)
HSLhsl(246, 52%, 29%)
HSVhsv(246, 68%, 44%)
CMYKcmyk(61.3%, 68.5%, 0%, 56.5%)
CIE-LABlab(19.49, 27.46, -42.91)
CIE-LCHlch(19.49, 50.95, 302.61°)
OKLaboklab(31.75% 0.0245 -0.1235)
OKLCHoklch(31.75% 0.126 281.2)
XYZxyz(4.4656, 2.8631, 15.3531)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B236F #676F23
analogous
#23416F #2B236F #51236F
triadic
#2B236F #6F2B23 #236F2B
tetradic
#2B236F #6F2341 #676F23 #236F51
square
#2B236F #6F2341 #676F23 #236F51
split-complementary
#2B236F #6F5123 #416F23
monochromatic
#090717 #191440 #2B236F #3D329E #5547C5

Accessibility & contrast

On white

13.35
#2B236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B236F
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B236F#FFFFFF#000000##FFFFFF
##2B236F1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#023645
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b236f;
/* rgb */ color: rgb(43, 35, 111);
/* oklch */ color: oklch(31.7% 0.126 281.2);
Tailwind
colors: {
  custom: {
    50: '#6d5e99',
    500: '#2b236f',
    950: '#000000',
  },
}
SCSS
$custom: #2b236f;
$custom-light: #6d5e99;
$custom-dark: #000000;
JSON
{
  "hex": "#2b236f",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 246.316,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31749,
    "c": 0.12588,
    "h": 281.2
  },
  "luminance": 0.02863
}

Semantic roles & 50–950 ramp

primary
#2B236F
secondary
#99A24C
accent
#DB4CCC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2B236F

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

Preview Lab → · Contrast checker → · Palette generator →

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