#2A288C#2A288C

#2A288C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.160 H 275.4°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#2A288C
RGBrgb(42, 40, 140)
HSLhsl(241, 56%, 35%)
HSVhsv(241, 71%, 55%)
CMYKcmyk(70%, 71.4%, 0%, 45.1%)
CIE-LABlab(23.35, 34.30, -54.99)
CIE-LCHlch(23.35, 64.81, 301.95°)
OKLaboklab(35.36% 0.015 -0.1589)
OKLCHoklch(35.36% 0.16 275.4)
XYZxyz(6.4457, 3.9027, 25.2195)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A288C #8A8C28
analogous
#28588C #2A288C #5C288C
triadic
#2A288C #8C2A28 #288C2A
tetradic
#2A288C #8C2858 #8A8C28 #288C5C
square
#2A288C #8C2858 #8A8C28 #288C5C
split-complementary
#2A288C #8C5C28 #588C28
monochromatic
#0D0D2D #1C1A5C #2A288C #3836BC #605ED1

Accessibility & contrast

On white

11.79
#2A288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A288C
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A288C#FFFFFF#000000##FFFFFF
##2A288C1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a288c;
/* rgb */ color: rgb(42, 40, 140);
/* oklch */ color: oklch(35.4% 0.160 275.4);
Tailwind
colors: {
  custom: {
    50: '#7263af',
    500: '#2a288c',
    950: '#000000',
  },
}
SCSS
$custom: #2a288c;
$custom-light: #7263af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a288c",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 241.2,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35363,
    "c": 0.15956,
    "h": 275.4
  },
  "luminance": 0.03903
}

Semantic roles & 50–950 ramp

primary
#2A288C
secondary
#B4B65A
accent
#DF49DC
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2A288C

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

Preview Lab → · Contrast checker → · Palette generator →

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