#2A237B#2A237B

#2A237B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.143 H 278.6°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#2A237B
RGBrgb(42, 35, 123)
HSLhsl(245, 56%, 31%)
HSVhsv(245, 72%, 48%)
CMYKcmyk(65.9%, 71.5%, 0%, 51.8%)
CIE-LABlab(20.53, 31.48, -48.91)
CIE-LCHlch(20.53, 58.16, 302.77°)
OKLaboklab(32.83% 0.0214 -0.1411)
OKLCHoklch(32.83% 0.143 278.6)
XYZxyz(5.1299, 3.1240, 19.0677)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A237B #747B23
analogous
#23487B #2A237B #56237B
triadic
#2A237B #7B2A23 #237B2A
tetradic
#2A237B #7B2348 #747B23 #237B56
square
#2A237B #7B2348 #747B23 #237B56
split-complementary
#2A237B #7B5623 #487B23
monochromatic
#09081C #1A154B #2A237B #3A31AB #564CCC

Accessibility & contrast

On white

12.92
#2A237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A237B
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A237B#FFFFFF#000000##FFFFFF
##2A237B1.0012.921.6212.92
#FFFFFF12.921.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a237b;
/* rgb */ color: rgb(42, 35, 123);
/* oklch */ color: oklch(32.8% 0.143 278.6);
Tailwind
colors: {
  custom: {
    50: '#6f5fa2',
    500: '#2a237b',
    950: '#000000',
  },
}
SCSS
$custom: #2a237b;
$custom-light: #6f5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a237b",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 244.773,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32832,
    "c": 0.14268,
    "h": 278.6
  },
  "luminance": 0.03124
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A237B

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

Preview Lab → · Contrast checker → · Palette generator →

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