#2F25A9#2F25A9

#2F25A9 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.3% C 0.198 H 275.0°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#2F25A9
RGBrgb(47, 37, 169)
HSLhsl(245, 64%, 40%)
HSVhsv(245, 78%, 66%)
CMYKcmyk(72.2%, 78.1%, 0%, 33.7%)
CIE-LABlab(26.13, 46.24, -68.15)
CIE-LCHlch(26.13, 82.35, 304.16°)
OKLaboklab(38.34% 0.0174 -0.1971)
OKLCHoklch(38.34% 0.198 275)
XYZxyz(8.9929, 4.7912, 37.9793)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F25A9 #9FA925
analogous
#255DA9 #2F25A9 #7125A9
triadic
#2F25A9 #A92F25 #25A92F
tetradic
#2F25A9 #A9255D #9FA925 #25A971
square
#2F25A9 #A9255D #9FA925 #25A971
split-complementary
#2F25A9 #A97125 #5DA925
monochromatic
#130F45 #211A77 #2F25A9 #4438D3 #736ADE

Accessibility & contrast

On white

10.72
#2F25A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F25A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F25A9
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F25A9#FFFFFF#000000##FFFFFF
##2F25A91.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#0038A7
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f25a9;
/* rgb */ color: rgb(47, 37, 169);
/* oklch */ color: oklch(38.3% 0.198 275.0);
Tailwind
colors: {
  custom: {
    50: '#7b63c4',
    500: '#2f25a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f25a9;
$custom-light: #7b63c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f25a9",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 169
  },
  "hsl": {
    "h": 244.545,
    "s": 64.078,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38339,
    "c": 0.19782,
    "h": 275
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#2F25A9
secondary
#BDC465
accent
#E741DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2F25A9

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

Preview Lab → · Contrast checker → · Palette generator →

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