#2A2F91#2A2F91

#2A2F91 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.158 H 273.4°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#2A2F91
RGBrgb(42, 47, 145)
HSLhsl(237, 55%, 37%)
HSVhsv(237, 71%, 57%)
CMYKcmyk(71%, 67.6%, 0%, 43.1%)
CIE-LABlab(25.47, 31.64, -54.60)
CIE-LCHlch(25.47, 63.10, 300.09°)
OKLaboklab(37.05% 0.0094 -0.1577)
OKLCHoklch(37.05% 0.158 273.4)
XYZxyz(7.0805, 4.5689, 27.2913)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F91 #918C2A
analogous
#2A6391 #2A2F91 #592A91
triadic
#2A2F91 #912A2F #2F912A
tetradic
#2A2F91 #912A63 #918C2A #2A9159
square
#2A2F91 #912A63 #918C2A #2A9159
split-complementary
#2A2F91 #91592A #63912A
monochromatic
#0F1032 #1C2062 #2A2F91 #383EC0 #6369D2

Accessibility & contrast

On white

10.97
#2A2F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A2F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F91
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F91#FFFFFF#000000##FFFFFF
##2A2F911.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00388F
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2f91;
/* rgb */ color: rgb(42, 47, 145);
/* oklch */ color: oklch(37.0% 0.158 273.4);
Tailwind
colors: {
  custom: {
    50: '#7368b2',
    500: '#2a2f91',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f91;
$custom-light: #7368b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f91",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 237.087,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37045,
    "c": 0.15801,
    "h": 273.4
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#2A2F91
secondary
#B8B45F
accent
#D749DE
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2F91

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

Preview Lab → · Contrast checker → · Palette generator →

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