#2A238D#2A238D

#2A238D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.166 H 276.2°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#2A238D
RGBrgb(42, 35, 141)
HSLhsl(244, 60%, 35%)
HSVhsv(244, 75%, 55%)
CMYKcmyk(70.2%, 75.2%, 0%, 44.7%)
CIE-LABlab(22.36, 37.66, -57.23)
CIE-LCHlch(22.36, 68.51, 303.35°)
OKLaboklab(34.69% 0.018 -0.1654)
OKLCHoklch(34.69% 0.166 276.2)
XYZxyz(6.3620, 3.6168, 25.5570)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A238D #868D23
analogous
#23518D #2A238D #5F238D
triadic
#2A238D #8D2A23 #238D2A
tetradic
#2A238D #8D2351 #868D23 #238D5F
square
#2A238D #8D2351 #868D23 #238D5F
split-complementary
#2A238D #8D5F23 #518D23
monochromatic
#0D0B2B #1B175C #2A238D #392FBE #5E55D5

Accessibility & contrast

On white

12.19
#2A238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A238D
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A238D#FFFFFF#000000##FFFFFF
##2A238D1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a238d;
/* rgb */ color: rgb(42, 35, 141);
/* oklch */ color: oklch(34.7% 0.166 276.2);
Tailwind
colors: {
  custom: {
    50: '#735faf',
    500: '#2a238d',
    950: '#000000',
  },
}
SCSS
$custom: #2a238d;
$custom-light: #735faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a238d",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 243.962,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3469,
    "c": 0.16637,
    "h": 276.2
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#2A238D
secondary
#B2B953
accent
#E344D9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A238D

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

Preview Lab → · Contrast checker → · Palette generator →

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