#2A236A#2A236A

#2A236A is a dark, moderate blue. Relative luminance 0.027; OKLCH L 31.2% C 0.119 H 281.4°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#2A236A
RGBrgb(42, 35, 106)
HSLhsl(246, 50%, 28%)
HSVhsv(246, 67%, 42%)
CMYKcmyk(60.4%, 67%, 0%, 58.4%)
CIE-LABlab(18.95, 25.52, -40.55)
CIE-LCHlch(18.95, 47.91, 302.18°)
OKLaboklab(31.2% 0.0236 -0.1166)
OKLCHoklch(31.2% 0.119 281.4)
XYZxyz(4.1566, 2.7346, 13.9417)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A236A #636A23
analogous
#23406A #2A236A #4D236A
triadic
#2A236A #6A2A23 #236A2A
tetradic
#2A236A #6A2340 #636A23 #236A4D
square
#2A236A #6A2340 #636A23 #236A4D
split-complementary
#2A236A #6A4D23 #406A23
monochromatic
#090817 #18143C #2A236A #3C3298 #5246C2

Accessibility & contrast

On white

13.57
#2A236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A236A
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A236A#FFFFFF#000000##FFFFFF
##2A236A1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#002B69
Tritanopia (blue-blind)
#073543
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a236a;
/* rgb */ color: rgb(42, 35, 106);
/* oklch */ color: oklch(31.2% 0.119 281.4);
Tailwind
colors: {
  custom: {
    50: '#6b5e95',
    500: '#2a236a',
    950: '#000000',
  },
}
SCSS
$custom: #2a236a;
$custom-light: #6b5e95;
$custom-dark: #000000;
JSON
{
  "hex": "#2a236a",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 245.915,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31195,
    "c": 0.11893,
    "h": 281.4
  },
  "luminance": 0.02735
}

Semantic roles & 50–950 ramp

primary
#2A236A
secondary
#959D4B
accent
#DA4ECC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A236A

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

Preview Lab → · Contrast checker → · Palette generator →

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