#2A2F9B#2A2F9B

#2A2F9B is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.171 H 272.8°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#2A2F9B
RGBrgb(42, 47, 155)
HSLhsl(237, 57%, 39%)
HSVhsv(237, 73%, 61%)
CMYKcmyk(72.9%, 69.7%, 0%, 39.2%)
CIE-LABlab(26.42, 35.22, -59.18)
CIE-LCHlch(26.42, 68.87, 300.76°)
OKLaboklab(38.03% 0.0084 -0.1711)
OKLCHoklch(38.03% 0.171 272.8)
XYZxyz(7.8858, 4.8910, 31.5325)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F9B #9B962A
analogous
#2A679B #2A2F9B #5D2A9B
triadic
#2A2F9B #9B2A2F #2F9B2A
tetradic
#2A2F9B #9B2A67 #9B962A #2A9B5D
square
#2A2F9B #9B2A67 #9B962A #2A9B5D
split-complementary
#2A2F9B #9B5D2A #679B2A
monochromatic
#10123B #1D206B #2A2F9B #393FC9 #696ED6

Accessibility & contrast

On white

10.61
#2A2F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A2F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F9B
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F9B#FFFFFF#000000##FFFFFF
##2A2F9B1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003999
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2f9b;
/* rgb */ color: rgb(42, 47, 155);
/* oklch */ color: oklch(38.0% 0.171 272.8);
Tailwind
colors: {
  custom: {
    50: '#7568ba',
    500: '#2a2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f9b;
$custom-light: #7568ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f9b",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 237.345,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38026,
    "c": 0.17131,
    "h": 272.8
  },
  "luminance": 0.04892
}

Semantic roles & 50–950 ramp

primary
#2A2F9B
secondary
#BDB964
accent
#DA47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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