#2A168F#2A168F

#2A168F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 33.3% C 0.181 H 277.6°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#2A168F
RGBrgb(42, 22, 143)
HSLhsl(250, 73%, 32%)
HSVhsv(250, 85%, 56%)
CMYKcmyk(70.6%, 84.6%, 0%, 43.9%)
CIE-LABlab(20.24, 45.06, -61.99)
CIE-LCHlch(20.24, 76.63, 306.01°)
OKLaboklab(33.27% 0.024 -0.1791)
OKLCHoklch(33.27% 0.181 277.6)
XYZxyz(6.1981, 3.0487, 26.2431)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A168F #7B8F16
analogous
#163F8F #2A168F #66168F
triadic
#2A168F #8F2A16 #168F2A
tetradic
#2A168F #8F163F #7B8F16 #168F66
square
#2A168F #8F163F #7B8F16 #168F66
split-complementary
#2A168F #8F6616 #3F8F16
monochromatic
#0B0625 #1A0E5A #2A168F #3A1EC4 #593EE1

Accessibility & contrast

On white

13.05
#2A168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2A168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A168F
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A168F#FFFFFF#000000##FFFFFF
##2A168F1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a168f;
/* rgb */ color: rgb(42, 22, 143);
/* oklch */ color: oklch(33.3% 0.181 277.6);
Tailwind
colors: {
  custom: {
    50: '#7458b1',
    500: '#2a168f',
    950: '#000000',
  },
}
SCSS
$custom: #2a168f;
$custom-light: #7458b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a168f",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 249.917,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33271,
    "c": 0.18067,
    "h": 277.6
  },
  "luminance": 0.03049
}

Semantic roles & 50–950 ramp

primary
#2A168F
secondary
#ACC13F
accent
#F038D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2A168F

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

Preview Lab → · Contrast checker → · Palette generator →

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