#2F2A7D#2F2A7D

#2F2A7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.136 H 279.3°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2F2A7D
RGBrgb(47, 42, 125)
HSLhsl(244, 50%, 33%)
HSVhsv(244, 66%, 49%)
CMYKcmyk(62.4%, 66.4%, 0%, 51%)
CIE-LABlab(22.79, 28.50, -46.46)
CIE-LCHlch(22.79, 54.51, 301.53°)
OKLaboklab(34.63% 0.0219 -0.1337)
OKLCHoklch(34.63% 0.136 279.3)
XYZxyz(5.7007, 3.7405, 19.8196)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A7D #787D2A
analogous
#2A4F7D #2F2A7D #582A7D
triadic
#2F2A7D #7D2F2A #2A7D2F
tetradic
#2F2A7D #7D2A4F #787D2A #2A7D58
square
#2F2A7D #7D2A4F #787D2A #2A7D58
split-complementary
#2F2A7D #7D582A #4F7D2A
monochromatic
#0D0B21 #1E1B4F #2F2A7D #4039AB #605AC8

Accessibility & contrast

On white

12.01
#2F2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F2A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A7D
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A7D#FFFFFF#000000##FFFFFF
##2F2A7D1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2a7d;
/* rgb */ color: rgb(47, 42, 125);
/* oklch */ color: oklch(34.6% 0.136 279.3);
Tailwind
colors: {
  custom: {
    50: '#7164a3',
    500: '#2f2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a7d;
$custom-light: #7164a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a7d",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 243.614,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3463,
    "c": 0.13551,
    "h": 279.3
  },
  "luminance": 0.03741
}

Semantic roles & 50–950 ramp

primary
#2F2A7D
secondary
#A8AD56
accent
#D94FD1
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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