#2A2F9F#2A2F9F

#2A2F9F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.177 H 272.5°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#2A2F9F
RGBrgb(42, 47, 159)
HSLhsl(237, 58%, 39%)
HSVhsv(237, 74%, 62%)
CMYKcmyk(73.6%, 70.4%, 0%, 37.6%)
CIE-LABlab(26.81, 36.64, -60.97)
CIE-LCHlch(26.81, 71.14, 301.00°)
OKLaboklab(38.43% 0.0079 -0.1764)
OKLCHoklch(38.43% 0.177 272.5)
XYZxyz(8.2273, 5.0276, 33.3310)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F9F #9F9A2A
analogous
#2A6A9F #2A2F9F #602A9F
triadic
#2A2F9F #9F2A2F #2F9F2A
tetradic
#2A2F9F #9F2A6A #9F9A2A #2A9F60
square
#2A2F9F #9F2A6A #9F9A2A #2A9F60
split-complementary
#2A2F9F #9F602A #6A9F2A
monochromatic
#10123E #1D216F #2A2F9F #3B41CB #6B70D8

Accessibility & contrast

On white

10.47
#2A2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F9F
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F9F#FFFFFF#000000##FFFFFF
##2A2F9F1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2f9f;
/* rgb */ color: rgb(42, 47, 159);
/* oklch */ color: oklch(38.4% 0.177 272.5);
Tailwind
colors: {
  custom: {
    50: '#7668bc',
    500: '#2a2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f9f;
$custom-light: #7668bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f9f",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 237.436,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38427,
    "c": 0.17653,
    "h": 272.5
  },
  "luminance": 0.05028
}

Semantic roles & 50–950 ramp

primary
#2A2F9F
secondary
#BFBB66
accent
#DB46E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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