#2A237C#2A237C

#2A237C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.144 H 278.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2A237C
RGBrgb(42, 35, 124)
HSLhsl(245, 56%, 31%)
HSVhsv(245, 72%, 49%)
CMYKcmyk(66.1%, 71.8%, 0%, 51.4%)
CIE-LABlab(20.63, 31.83, -49.38)
CIE-LCHlch(20.63, 58.75, 302.81°)
OKLaboklab(32.93% 0.0212 -0.1425)
OKLCHoklch(32.93% 0.144 278.5)
XYZxyz(5.1928, 3.1491, 19.3991)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A237C #757C23
analogous
#23487C #2A237C #56237C
triadic
#2A237C #7C2A23 #237C2A
tetradic
#2A237C #7C2348 #757C23 #237C56
square
#2A237C #7C2348 #757C23 #237C56
split-complementary
#2A237C #7C5623 #487C23
monochromatic
#0A081D #1A164C #2A237C #3A30AC #574DCD

Accessibility & contrast

On white

12.88
#2A237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2A237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A237C
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A237C#FFFFFF#000000##FFFFFF
##2A237C1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a237c;
/* rgb */ color: rgb(42, 35, 124);
/* oklch */ color: oklch(32.9% 0.144 278.5);
Tailwind
colors: {
  custom: {
    50: '#6f5fa3',
    500: '#2a237c',
    950: '#000000',
  },
}
SCSS
$custom: #2a237c;
$custom-light: #6f5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a237c",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 244.719,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32932,
    "c": 0.14403,
    "h": 278.5
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#2A237C
secondary
#A7AF4C
accent
#DF49D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A237C

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

Preview Lab → · Contrast checker → · Palette generator →

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