#2F25C1#2F25C1

#2F25C1 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 41.0% C 0.226 H 272.9°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#2F25C1
RGBrgb(47, 37, 193)
HSLhsl(244, 68%, 45%)
HSVhsv(244, 81%, 76%)
CMYKcmyk(75.6%, 80.8%, 0%, 24.3%)
CIE-LABlab(28.84, 53.70, -77.96)
CIE-LCHlch(28.84, 94.67, 304.56°)
OKLaboklab(41.02% 0.0116 -0.2255)
OKLCHoklch(41.02% 0.226 272.9)
XYZxyz(11.4563, 5.7765, 50.9529)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F25C1 #B7C125
analogous
#2569C1 #2F25C1 #7D25C1
triadic
#2F25C1 #C12F25 #25C12F
tetradic
#2F25C1 #C12569 #B7C125 #25C17D
square
#2F25C1 #C12569 #B7C125 #25C17D
split-complementary
#2F25C1 #C17D25 #69C125
monochromatic
#16115A #221B8E #2F25C1 #5147DC #827BE6

Accessibility & contrast

On white

9.74
#2F25C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F25C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F25C1
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F25C1#FFFFFF#000000##FFFFFF
##2F25C11.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BC5
Deuteranopia (green-blind)
#003CBE
Tritanopia (blue-blind)
#005674
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f25c1;
/* rgb */ color: rgb(47, 37, 193);
/* oklch */ color: oklch(41.0% 0.226 272.9);
Tailwind
colors: {
  custom: {
    50: '#8164d5',
    500: '#2f25c1',
    950: '#000000',
  },
}
SCSS
$custom: #2f25c1;
$custom-light: #8164d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f25c1",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 193
  },
  "hsl": {
    "h": 243.846,
    "s": 67.826,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4102,
    "c": 0.22585,
    "h": 272.9
  },
  "luminance": 0.05778
}

Semantic roles & 50–950 ramp

primary
#2F25C1
secondary
#C8CE74
accent
#EB3DE0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2F25C1

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

Preview Lab → · Contrast checker → · Palette generator →

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