#2A238C#2A238C

#2A238C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.165 H 276.3°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#2A238C
RGBrgb(42, 35, 140)
HSLhsl(244, 60%, 34%)
HSVhsv(244, 75%, 55%)
CMYKcmyk(70%, 75%, 0%, 45.1%)
CIE-LABlab(22.26, 37.32, -56.78)
CIE-LCHlch(22.26, 67.95, 303.32°)
OKLaboklab(34.58% 0.0182 -0.1641)
OKLCHoklch(34.58% 0.165 276.3)
XYZxyz(6.2880, 3.5872, 25.1669)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A238C #858C23
analogous
#23518C #2A238C #5F238C
triadic
#2A238C #8C2A23 #238C2A
tetradic
#2A238C #8C2351 #858C23 #238C5F
square
#2A238C #8C2351 #858C23 #238C5F
split-complementary
#2A238C #8C5F23 #518C23
monochromatic
#0D0B2A #1B175B #2A238C #392FBD #5D55D4

Accessibility & contrast

On white

12.23
#2A238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A238C
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A238C#FFFFFF#000000##FFFFFF
##2A238C1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a238c;
/* rgb */ color: rgb(42, 35, 140);
/* oklch */ color: oklch(34.6% 0.165 276.3);
Tailwind
colors: {
  custom: {
    50: '#735faf',
    500: '#2a238c',
    950: '#000000',
  },
}
SCSS
$custom: #2a238c;
$custom-light: #735faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a238c",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 244,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34584,
    "c": 0.16509,
    "h": 276.3
  },
  "luminance": 0.03588
}

Semantic roles & 50–950 ramp

primary
#2A238C
secondary
#B2B852
accent
#E345D9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A238C

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

Preview Lab → · Contrast checker → · Palette generator →

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