#2A2F9E#2A2F9E

#2A2F9E is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.175 H 272.6°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2A2F9E
RGBrgb(42, 47, 158)
HSLhsl(237, 58%, 39%)
HSVhsv(237, 73%, 62%)
CMYKcmyk(73.4%, 70.3%, 0%, 38%)
CIE-LABlab(26.72, 36.28, -60.53)
CIE-LCHlch(26.72, 70.57, 300.94°)
OKLaboklab(38.33% 0.008 -0.175)
OKLCHoklch(38.33% 0.175 272.6)
XYZxyz(8.1408, 4.9931, 32.8758)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F9E #9E992A
analogous
#2A699E #2A2F9E #5F2A9E
triadic
#2A2F9E #9E2A2F #2F9E2A
tetradic
#2A2F9E #9E2A69 #9E992A #2A9E5F
square
#2A2F9E #9E2A69 #9E992A #2A9E5F
split-complementary
#2A2F9E #9E5F2A #699E2A
monochromatic
#10123D #1D216E #2A2F9E #3A41CB #6B6FD8

Accessibility & contrast

On white

10.51
#2A2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2A2F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F9E
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F9E#FFFFFF#000000##FFFFFF
##2A2F9E1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a2f9e;
/* rgb */ color: rgb(42, 47, 158);
/* oklch */ color: oklch(38.3% 0.175 272.6);
Tailwind
colors: {
  custom: {
    50: '#7668bc',
    500: '#2a2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f9e;
$custom-light: #7668bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f9e",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 237.414,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38326,
    "c": 0.17523,
    "h": 272.6
  },
  "luminance": 0.04994
}

Semantic roles & 50–950 ramp

primary
#2A2F9E
secondary
#BEBA66
accent
#DB47E1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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