#2A236E#2A236E

#2A236E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.125 H 280.7°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2A236E
RGBrgb(42, 35, 110)
HSLhsl(246, 52%, 28%)
HSVhsv(246, 68%, 43%)
CMYKcmyk(61.8%, 68.2%, 0%, 56.9%)
CIE-LABlab(19.31, 26.93, -42.56)
CIE-LCHlch(19.31, 50.37, 302.32°)
OKLaboklab(31.57% 0.0232 -0.1225)
OKLCHoklch(31.57% 0.125 280.7)
XYZxyz(4.3695, 2.8198, 15.0629)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A236E #676E23
analogous
#23416E #2A236E #4F236E
triadic
#2A236E #6E2A23 #236E2A
tetradic
#2A236E #6E2341 #676E23 #236E4F
square
#2A236E #6E2341 #676E23 #236E4F
split-complementary
#2A236E #6E4F23 #416E23
monochromatic
#090717 #181440 #2A236E #3C329C #5347C4

Accessibility & contrast

On white

13.43
#2A236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A236E
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A236E#FFFFFF#000000##FFFFFF
##2A236E1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a236e;
/* rgb */ color: rgb(42, 35, 110);
/* oklch */ color: oklch(31.6% 0.125 280.7);
Tailwind
colors: {
  custom: {
    50: '#6c5e98',
    500: '#2a236e',
    950: '#000000',
  },
}
SCSS
$custom: #2a236e;
$custom-light: #6c5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#2a236e",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 245.6,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31568,
    "c": 0.12465,
    "h": 280.7
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#2A236E
secondary
#99A14C
accent
#DB4DCE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2A236E

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

Preview Lab → · Contrast checker → · Palette generator →

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