#2A2F95#2A2F95

#2A2F95 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.163 H 273.2°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2A2F95
RGBrgb(42, 47, 149)
HSLhsl(237, 56%, 37%)
HSVhsv(237, 72%, 58%)
CMYKcmyk(71.8%, 68.5%, 0%, 41.6%)
CIE-LABlab(25.85, 33.08, -56.45)
CIE-LCHlch(25.85, 65.43, 300.37°)
OKLaboklab(37.43% 0.009 -0.1631)
OKLCHoklch(37.43% 0.163 273.2)
XYZxyz(7.3944, 4.6945, 28.9444)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F95 #95902A
analogous
#2A6595 #2A2F95 #5A2A95
triadic
#2A2F95 #952A2F #2F952A
tetradic
#2A2F95 #952A65 #95902A #2A955A
square
#2A2F95 #952A65 #95902A #2A955A
split-complementary
#2A2F95 #955A2A #65952A
monochromatic
#0F1136 #1D2065 #2A2F95 #373EC5 #666BD4

Accessibility & contrast

On white

10.83
#2A2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F95
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F95#FFFFFF#000000##FFFFFF
##2A2F951.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2f95;
/* rgb */ color: rgb(42, 47, 149);
/* oklch */ color: oklch(37.4% 0.163 273.2);
Tailwind
colors: {
  custom: {
    50: '#7368b5',
    500: '#2a2f95',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f95;
$custom-light: #7368b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f95",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 237.196,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37433,
    "c": 0.16338,
    "h": 273.2
  },
  "luminance": 0.04695
}

Semantic roles & 50–950 ramp

primary
#2A2F95
secondary
#BAB661
accent
#D848DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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