#2A236B#2A236B

#2A236B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.120 H 281.3°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#2A236B
RGBrgb(42, 35, 107)
HSLhsl(246, 51%, 28%)
HSVhsv(246, 67%, 42%)
CMYKcmyk(60.7%, 67.3%, 0%, 58%)
CIE-LABlab(19.04, 25.87, -41.06)
CIE-LCHlch(19.04, 48.53, 302.22°)
OKLaboklab(31.29% 0.0235 -0.118)
OKLCHoklch(31.29% 0.12 281.3)
XYZxyz(4.2089, 2.7556, 14.2172)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A236B #646B23
analogous
#23406B #2A236B #4E236B
triadic
#2A236B #6B2A23 #236B2A
tetradic
#2A236B #6B2340 #646B23 #236B4E
square
#2A236B #6B2340 #646B23 #236B4E
split-complementary
#2A236B #6B4E23 #406B23
monochromatic
#090817 #18143D #2A236B #3C3299 #5246C2

Accessibility & contrast

On white

13.54
#2A236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A236B
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A236B#FFFFFF#000000##FFFFFF
##2A236B1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#053543
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a236b;
/* rgb */ color: rgb(42, 35, 107);
/* oklch */ color: oklch(31.3% 0.120 281.3);
Tailwind
colors: {
  custom: {
    50: '#6b5e96',
    500: '#2a236b',
    950: '#000000',
  },
}
SCSS
$custom: #2a236b;
$custom-light: #6b5e96;
$custom-dark: #000000;
JSON
{
  "hex": "#2a236b",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 245.833,
    "s": 50.704,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31288,
    "c": 0.12037,
    "h": 281.3
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#2A236B
secondary
#969E4B
accent
#DA4ECD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A236B

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

Preview Lab → · Contrast checker → · Palette generator →

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