#2A206C#2A206C

#2A206C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.126 H 282.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2A206C
RGBrgb(42, 32, 108)
HSLhsl(248, 54%, 27%)
HSVhsv(248, 70%, 42%)
CMYKcmyk(61.1%, 70.4%, 0%, 57.6%)
CIE-LABlab(18.40, 28.18, -42.75)
CIE-LCHlch(18.40, 51.20, 303.39°)
OKLaboklab(30.85% 0.0263 -0.123)
OKLCHoklch(30.85% 0.126 282.1)
XYZxyz(4.1773, 2.6077, 14.4677)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A206C #626C20
analogous
#203C6C #2A206C #50206C
triadic
#2A206C #6C2A20 #206C2A
tetradic
#2A206C #6C203C #626C20 #206C50
square
#2A206C #6C203C #626C20 #206C50
split-complementary
#2A206C #6C5020 #3C6C20
monochromatic
#090718 #18123D #2A206C #3C2E9B #5240C6

Accessibility & contrast

On white

13.80
#2A206C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A206C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A206C
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A206C#FFFFFF#000000##FFFFFF
##2A206C1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#043443
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a206c;
/* rgb */ color: rgb(42, 32, 108);
/* oklch */ color: oklch(30.9% 0.126 282.1);
Tailwind
colors: {
  custom: {
    50: '#6c5c97',
    500: '#2a206c',
    950: '#000000',
  },
}
SCSS
$custom: #2a206c;
$custom-light: #6c5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#2a206c",
  "rgb": {
    "r": 42,
    "g": 32,
    "b": 108
  },
  "hsl": {
    "h": 247.895,
    "s": 54.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30853,
    "c": 0.12582,
    "h": 282.1
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#2A206C
secondary
#94A048
accent
#DE4ACA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2A206C

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

Preview Lab → · Contrast checker → · Palette generator →

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