#2A238F#2A238F

#2A238F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.169 H 276.0°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2A238F
RGBrgb(42, 35, 143)
HSLhsl(244, 61%, 35%)
HSVhsv(244, 76%, 56%)
CMYKcmyk(70.6%, 75.5%, 0%, 43.9%)
CIE-LABlab(22.57, 38.33, -58.13)
CIE-LCHlch(22.57, 69.63, 303.40°)
OKLaboklab(34.9% 0.0176 -0.168)
OKLCHoklch(34.9% 0.169 276)
XYZxyz(6.5122, 3.6769, 26.3478)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A238F #888F23
analogous
#23528F #2A238F #60238F
triadic
#2A238F #8F2A23 #238F2A
tetradic
#2A238F #8F2352 #888F23 #238F60
square
#2A238F #8F2352 #888F23 #238F60
split-complementary
#2A238F #8F6023 #528F23
monochromatic
#0D0B2D #1C175E #2A238F #382FC0 #5F57D6

Accessibility & contrast

On white

12.10
#2A238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A238F
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A238F#FFFFFF#000000##FFFFFF
##2A238F1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a238f;
/* rgb */ color: rgb(42, 35, 143);
/* oklch */ color: oklch(34.9% 0.169 276.0);
Tailwind
colors: {
  custom: {
    50: '#7360b1',
    500: '#2a238f',
    950: '#000000',
  },
}
SCSS
$custom: #2a238f;
$custom-light: #7360b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a238f",
  "rgb": {
    "r": 42,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 243.889,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34903,
    "c": 0.16892,
    "h": 276
  },
  "luminance": 0.03677
}

Semantic roles & 50–950 ramp

primary
#2A238F
secondary
#B3BA54
accent
#E444D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A238F

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

Preview Lab → · Contrast checker → · Palette generator →

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