#2A2FB1#2A2FB1

#2A2FB1 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.199 H 271.5°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2A2FB1
RGBrgb(42, 47, 177)
HSLhsl(238, 62%, 43%)
HSVhsv(238, 76%, 69%)
CMYKcmyk(76.3%, 73.4%, 0%, 30.6%)
CIE-LABlab(28.64, 42.88, -68.81)
CIE-LCHlch(28.64, 81.08, 301.93°)
OKLaboklab(40.28% 0.0053 -0.1992)
OKLCHoklch(40.28% 0.199 271.5)
XYZxyz(9.9045, 5.6985, 42.1644)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FB1 #B1AC2A
analogous
#2A72B1 #2A2FB1 #692AB1
triadic
#2A2FB1 #B12A2F #2FB12A
tetradic
#2A2FB1 #B12A72 #B1AC2A #2AB169
square
#2A2FB1 #B12A72 #B1AC2A #2AB169
split-complementary
#2A2FB1 #B1692A #72B12A
monochromatic
#13154E #1E2280 #2A2FB1 #454BD3 #777BDF

Accessibility & contrast

On white

9.81
#2A2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FB1
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FB1#FFFFFF#000000##FFFFFF
##2A2FB11.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00546D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a2fb1;
/* rgb */ color: rgb(42, 47, 177);
/* oklch */ color: oklch(40.3% 0.199 271.5);
Tailwind
colors: {
  custom: {
    50: '#7a69ca',
    500: '#2a2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fb1;
$custom-light: #7a69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fb1",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 237.778,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40283,
    "c": 0.19928,
    "h": 271.5
  },
  "luminance": 0.057
}

Semantic roles & 50–950 ramp

primary
#2A2FB1
secondary
#C6C370
accent
#DF43E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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