#2A235E#2A235E

#2A235E is a dark, moderate blue. Relative luminance 0.025; OKLCH L 30.1% C 0.101 H 283.9°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#2A235E
RGBrgb(42, 35, 94)
HSLhsl(247, 46%, 25%)
HSVhsv(247, 63%, 37%)
CMYKcmyk(55.3%, 62.8%, 0%, 63.1%)
CIE-LABlab(17.93, 21.29, -34.32)
CIE-LCHlch(17.93, 40.38, 301.82°)
OKLaboklab(30.13% 0.0243 -0.0982)
OKLCHoklch(30.13% 0.101 283.9)
XYZxyz(3.5756, 2.5023, 10.8821)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A235E #575E23
analogous
#23395E #2A235E #47235E
triadic
#2A235E #5E2A23 #235E2A
tetradic
#2A235E #5E2339 #575E23 #235E47
square
#2A235E #5E2339 #575E23 #235E47
split-complementary
#2A235E #5E4723 #395E23
monochromatic
#0A0816 #161231 #2A235E #3E348B #5244B7

Accessibility & contrast

On white

14.00
#2A235E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2A235E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A235E
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A235E#FFFFFF#000000##FFFFFF
##2A235E1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#16313C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a235e;
/* rgb */ color: rgb(42, 35, 94);
/* oklch */ color: oklch(30.1% 0.101 283.9);
Tailwind
colors: {
  custom: {
    50: '#695e8c',
    500: '#2a235e',
    950: '#000000',
  },
}
SCSS
$custom: #2a235e;
$custom-light: #695e8c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a235e",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 94
  },
  "hsl": {
    "h": 247.119,
    "s": 45.736,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30128,
    "c": 0.1012,
    "h": 283.9
  },
  "luminance": 0.02502
}

Semantic roles & 50–950 ramp

primary
#2A235E
secondary
#89924B
accent
#D552C6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2A235E

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

Preview Lab → · Contrast checker → · Palette generator →

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