#2A235C#2A235C

#2A235C is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.0% C 0.098 H 284.4°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2A235C
RGBrgb(42, 35, 92)
HSLhsl(247, 45%, 25%)
HSVhsv(247, 62%, 36%)
CMYKcmyk(54.3%, 62%, 0%, 63.9%)
CIE-LABlab(17.77, 20.59, -33.25)
CIE-LCHlch(17.77, 39.11, 301.77°)
OKLaboklab(29.96% 0.0244 -0.0951)
OKLCHoklch(29.96% 0.098 284.4)
XYZxyz(3.4871, 2.4668, 10.4155)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A235C #555C23
analogous
#23395C #2A235C #46235C
triadic
#2A235C #5C2A23 #235C2A
tetradic
#2A235C #5C2339 #555C23 #235C46
square
#2A235C #5C2339 #555C23 #235C46
split-complementary
#2A235C #5C4623 #395C23
monochromatic
#0A0816 #161230 #2A235C #3E3488 #5245B5

Accessibility & contrast

On white

14.06
#2A235C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2A235C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A235C
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A235C#FFFFFF#000000##FFFFFF
##2A235C1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#17303B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a235c;
/* rgb */ color: rgb(42, 35, 92);
/* oklch */ color: oklch(30.0% 0.098 284.4);
Tailwind
colors: {
  custom: {
    50: '#685e8b',
    500: '#2a235c',
    950: '#000000',
  },
}
SCSS
$custom: #2a235c;
$custom-light: #685e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a235c",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 92
  },
  "hsl": {
    "h": 247.368,
    "s": 44.882,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29958,
    "c": 0.09816,
    "h": 284.4
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#2A235C
secondary
#87904B
accent
#D553C5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #2A235C

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

Preview Lab → · Contrast checker → · Palette generator →

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