#2A2F96#2A2F96

#2A2F96 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.165 H 273.1°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#2A2F96
RGBrgb(42, 47, 150)
HSLhsl(237, 56%, 38%)
HSVhsv(237, 72%, 59%)
CMYKcmyk(72%, 68.7%, 0%, 41.2%)
CIE-LABlab(25.94, 33.44, -56.91)
CIE-LCHlch(25.94, 66.00, 300.44°)
OKLaboklab(37.53% 0.0089 -0.1645)
OKLCHoklch(37.53% 0.165 273.1)
XYZxyz(7.4745, 4.7265, 29.3666)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F96 #96912A
analogous
#2A6596 #2A2F96 #5B2A96
triadic
#2A2F96 #962A2F #2F962A
tetradic
#2A2F96 #962A65 #96912A #2A965B
square
#2A2F96 #962A65 #96912A #2A965B
split-complementary
#2A2F96 #965B2A #65962A
monochromatic
#0F1136 #1D2066 #2A2F96 #373EC6 #666BD4

Accessibility & contrast

On white

10.79
#2A2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A2F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F96
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F96#FFFFFF#000000##FFFFFF
##2A2F961.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a2f96;
/* rgb */ color: rgb(42, 47, 150);
/* oklch */ color: oklch(37.5% 0.165 273.1);
Tailwind
colors: {
  custom: {
    50: '#7468b6',
    500: '#2a2f96',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f96;
$custom-light: #7468b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f96",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 237.222,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37531,
    "c": 0.16471,
    "h": 273.1
  },
  "luminance": 0.04727
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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