#2A237F#2A237F

#2A237F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.148 H 278.0°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2A237F
RGBrgb(42, 35, 127)
HSLhsl(245, 57%, 32%)
HSVhsv(245, 72%, 50%)
CMYKcmyk(66.9%, 72.4%, 0%, 50.2%)
CIE-LABlab(20.93, 32.87, -50.80)
CIE-LCHlch(20.93, 60.51, 302.91°)
OKLaboklab(33.24% 0.0207 -0.1466)
OKLCHoklch(33.24% 0.148 278)
XYZxyz(5.3854, 3.2262, 20.4135)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A237F #787F23
analogous
#234A7F #2A237F #58237F
triadic
#2A237F #7F2A23 #237F2A
tetradic
#2A237F #7F234A #787F23 #237F58
square
#2A237F #7F234A #787F23 #237F58
split-complementary
#2A237F #7F5823 #4A7F23
monochromatic
#0A091F #1A164F #2A237F #3A30AF #584ECE

Accessibility & contrast

On white

12.76
#2A237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A237F
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A237F#FFFFFF#000000##FFFFFF
##2A237F1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2a237f;
/* rgb */ color: rgb(42, 35, 127);
/* oklch */ color: oklch(33.2% 0.148 278.0);
Tailwind
colors: {
  custom: {
    50: '#705fa5',
    500: '#2a237f',
    950: '#000000',
  },
}
SCSS
$custom: #2a237f;
$custom-light: #705fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a237f",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 244.565,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33235,
    "c": 0.14806,
    "h": 278
  },
  "luminance": 0.03227
}

Semantic roles & 50–950 ramp

primary
#2A237F
secondary
#AAB14C
accent
#E048D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A237F

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

Preview Lab → · Contrast checker → · Palette generator →

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