#2A2F9D#2A2F9D

#2A2F9D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.174 H 272.7°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#2A2F9D
RGBrgb(42, 47, 157)
HSLhsl(237, 58%, 39%)
HSVhsv(237, 73%, 62%)
CMYKcmyk(73.2%, 70.1%, 0%, 38.4%)
CIE-LABlab(26.62, 35.93, -60.08)
CIE-LCHlch(26.62, 70.00, 300.88°)
OKLaboklab(38.23% 0.0081 -0.1737)
OKLCHoklch(38.23% 0.174 272.7)
XYZxyz(8.0551, 4.9588, 32.4244)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F9D #9D982A
analogous
#2A699D #2A2F9D #5F2A9D
triadic
#2A2F9D #9D2A2F #2F9D2A
tetradic
#2A2F9D #9D2A69 #9D982A #2A9D5F
square
#2A2F9D #9D2A69 #9D982A #2A9D5F
split-complementary
#2A2F9D #9D5F2A #699D2A
monochromatic
#10123C #1D216D #2A2F9D #3A40CA #6A6FD7

Accessibility & contrast

On white

10.54
#2A2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F9D
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F9D#FFFFFF#000000##FFFFFF
##2A2F9D1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00399B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2f9d;
/* rgb */ color: rgb(42, 47, 157);
/* oklch */ color: oklch(38.2% 0.174 272.7);
Tailwind
colors: {
  custom: {
    50: '#7568bb',
    500: '#2a2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f9d;
$custom-light: #7568bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f9d",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 237.391,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38226,
    "c": 0.17393,
    "h": 272.7
  },
  "luminance": 0.0496
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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