#2A236F#2A236F

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

Color values

HEX#2A236F
RGBrgb(42, 35, 111)
HSLhsl(246, 52%, 29%)
HSVhsv(246, 68%, 44%)
CMYKcmyk(62.2%, 68.5%, 0%, 56.5%)
CIE-LABlab(19.40, 27.28, -43.06)
CIE-LCHlch(19.40, 50.98, 302.36°)
OKLaboklab(31.66% 0.0231 -0.1239)
OKLCHoklch(31.66% 0.126 280.5)
XYZxyz(4.4242, 2.8417, 15.3512)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A236F #686F23
analogous
#23426F #2A236F #50236F
triadic
#2A236F #6F2A23 #236F2A
tetradic
#2A236F #6F2342 #686F23 #236F50
square
#2A236F #6F2342 #686F23 #236F50
split-complementary
#2A236F #6F5023 #426F23
monochromatic
#090717 #181440 #2A236F #3C329E #5347C5

Accessibility & contrast

On white

13.39
#2A236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A236F
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A236F#FFFFFF#000000##FFFFFF
##2A236F1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a236f;
/* rgb */ color: rgb(42, 35, 111);
/* oklch */ color: oklch(31.7% 0.126 280.5);
Tailwind
colors: {
  custom: {
    50: '#6c5e99',
    500: '#2a236f',
    950: '#000000',
  },
}
SCSS
$custom: #2a236f;
$custom-light: #6c5e99;
$custom-dark: #000000;
JSON
{
  "hex": "#2a236f",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 245.526,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31663,
    "c": 0.12607,
    "h": 280.5
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#2A236F
secondary
#9AA24C
accent
#DB4CCE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #2A236F

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

Preview Lab → · Contrast checker → · Palette generator →

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