#2F25A3#2F25A3

#2F25A3 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.191 H 275.7°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#2F25A3
RGBrgb(47, 37, 163)
HSLhsl(245, 63%, 39%)
HSVhsv(245, 77%, 64%)
CMYKcmyk(71.2%, 77.3%, 0%, 36.1%)
CIE-LABlab(25.48, 44.32, -65.60)
CIE-LCHlch(25.48, 79.16, 304.04°)
OKLaboklab(37.69% 0.0188 -0.1897)
OKLCHoklch(37.69% 0.191 275.7)
XYZxyz(8.4425, 4.5710, 35.0806)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F25A3 #99A325
analogous
#255AA3 #2F25A3 #6E25A3
triadic
#2F25A3 #A32F25 #25A32F
tetradic
#2F25A3 #A3255A #99A325 #25A36E
square
#2F25A3 #A3255A #99A325 #25A36E
split-complementary
#2F25A3 #A36E25 #5AA325
monochromatic
#120E3F #211A71 #2F25A3 #4134D1 #6F66DC

Accessibility & contrast

On white

10.97
#2F25A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F25A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F25A3
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F25A3#FFFFFF#000000##FFFFFF
##2F25A31.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#0037A1
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f25a3;
/* rgb */ color: rgb(47, 37, 163);
/* oklch */ color: oklch(37.7% 0.191 275.7);
Tailwind
colors: {
  custom: {
    50: '#7a62c0',
    500: '#2f25a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f25a3;
$custom-light: #7a62c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f25a3",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 163
  },
  "hsl": {
    "h": 244.762,
    "s": 63,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37685,
    "c": 0.19059,
    "h": 275.7
  },
  "luminance": 0.04572
}

Semantic roles & 50–950 ramp

primary
#2F25A3
secondary
#BAC262
accent
#E642D9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F25A3

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

Preview Lab → · Contrast checker → · Palette generator →

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