#2F2CA4#2F2CA4

#2F2CA4 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.8% C 0.185 H 274.6°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2F2CA4
RGBrgb(47, 44, 164)
HSLhsl(242, 58%, 41%)
HSVhsv(242, 73%, 64%)
CMYKcmyk(71.3%, 73.2%, 0%, 35.7%)
CIE-LABlab(26.98, 40.71, -63.73)
CIE-LCHlch(26.98, 75.62, 302.57°)
OKLaboklab(38.78% 0.0148 -0.1843)
OKLCHoklch(38.78% 0.185 274.6)
XYZxyz(8.7716, 5.0852, 35.6340)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2CA4 #A1A42C
analogous
#2C65A4 #2F2CA4 #6B2CA4
triadic
#2F2CA4 #A42F2C #2CA42F
tetradic
#2F2CA4 #A42C65 #A1A42C #2CA46B
square
#2F2CA4 #A42C65 #A1A42C #2CA46B
split-complementary
#2F2CA4 #A46B2C #65A42C
monochromatic
#131243 #211F74 #2F2CA4 #4541CC #7471D9

Accessibility & contrast

On white

10.41
#2F2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F2CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2CA4
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2CA4#FFFFFF#000000##FFFFFF
##2F2CA41.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2ca4;
/* rgb */ color: rgb(47, 44, 164);
/* oklch */ color: oklch(38.8% 0.185 274.6);
Tailwind
colors: {
  custom: {
    50: '#7967c0',
    500: '#2f2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ca4;
$custom-light: #7967c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ca4",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 241.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38779,
    "c": 0.18486,
    "h": 274.6
  },
  "luminance": 0.05086
}

Semantic roles & 50–950 ramp

primary
#2F2CA4
secondary
#BEC06B
accent
#E147DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #2F2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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