#2A2F9C#2A2F9C

#2A2F9C is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.173 H 272.7°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2A2F9C
RGBrgb(42, 47, 156)
HSLhsl(237, 58%, 39%)
HSVhsv(237, 73%, 61%)
CMYKcmyk(73.1%, 69.9%, 0%, 38.8%)
CIE-LABlab(26.52, 35.58, -59.63)
CIE-LCHlch(26.52, 69.44, 300.82°)
OKLaboklab(38.13% 0.0082 -0.1724)
OKLCHoklch(38.13% 0.173 272.7)
XYZxyz(7.9701, 4.9248, 31.9766)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F9C #9C972A
analogous
#2A689C #2A2F9C #5E2A9C
triadic
#2A2F9C #9C2A2F #2F9C2A
tetradic
#2A2F9C #9C2A68 #9C972A #2A9C5E
square
#2A2F9C #9C2A68 #9C972A #2A9C5E
split-complementary
#2A2F9C #9C5E2A #689C2A
monochromatic
#10123C #1D206C #2A2F9C #3940CA #6A6ED7

Accessibility & contrast

On white

10.58
#2A2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2A2F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F9C
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F9C#FFFFFF#000000##FFFFFF
##2A2F9C1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2f9c;
/* rgb */ color: rgb(42, 47, 156);
/* oklch */ color: oklch(38.1% 0.173 272.7);
Tailwind
colors: {
  custom: {
    50: '#7568ba',
    500: '#2a2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f9c;
$custom-light: #7568ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f9c",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 237.368,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38126,
    "c": 0.17263,
    "h": 272.7
  },
  "luminance": 0.04926
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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