#2A238B#2A238B

#2A238B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.164 H 276.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2A238B
RGBrgb(42, 35, 139)
HSLhsl(244, 60%, 34%)
HSVhsv(244, 75%, 55%)
CMYKcmyk(69.8%, 74.8%, 0%, 45.5%)
CIE-LABlab(22.15, 36.98, -56.33)
CIE-LCHlch(22.15, 67.38, 303.29°)
OKLaboklab(34.48% 0.0184 -0.1628)
OKLCHoklch(34.48% 0.164 276.4)
XYZxyz(6.2146, 3.5578, 24.7803)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A238B #848B23
analogous
#23508B #2A238B #5E238B
triadic
#2A238B #8B2A23 #238B2A
tetradic
#2A238B #8B2350 #848B23 #238B5E
square
#2A238B #8B2350 #848B23 #238B5E
split-complementary
#2A238B #8B5E23 #508B23
monochromatic
#0C0A29 #1B175A #2A238B #392FBC #5D54D4

Accessibility & contrast

On white

12.27
#2A238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A238B
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A238B#FFFFFF#000000##FFFFFF
##2A238B1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a238b;
/* rgb */ color: rgb(42, 35, 139);
/* oklch */ color: oklch(34.5% 0.164 276.4);
Tailwind
colors: {
  custom: {
    50: '#725fae',
    500: '#2a238b',
    950: '#000000',
  },
}
SCSS
$custom: #2a238b;
$custom-light: #725fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a238b",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 244.038,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34479,
    "c": 0.1638,
    "h": 276.4
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#2A238B
secondary
#B1B852
accent
#E345D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A238B

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

Preview Lab → · Contrast checker → · Palette generator →

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