#2F25A8#2F25A8

#2F25A8 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.197 H 275.1°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2F25A8
RGBrgb(47, 37, 168)
HSLhsl(245, 64%, 40%)
HSVhsv(245, 78%, 66%)
CMYKcmyk(72%, 78%, 0%, 34.1%)
CIE-LABlab(26.02, 45.92, -67.72)
CIE-LCHlch(26.02, 81.82, 304.14°)
OKLaboklab(38.23% 0.0176 -0.1958)
OKLCHoklch(38.23% 0.197 275.1)
XYZxyz(8.8994, 4.7538, 37.4868)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F25A8 #9EA825
analogous
#255DA8 #2F25A8 #7025A8
triadic
#2F25A8 #A82F25 #25A82F
tetradic
#2F25A8 #A8255D #9EA825 #25A870
square
#2F25A8 #A8255D #9EA825 #25A870
split-complementary
#2F25A8 #A87025 #5DA825
monochromatic
#130F44 #211A76 #2F25A8 #4337D3 #7269DE

Accessibility & contrast

On white

10.76
#2F25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F25A8
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F25A8#FFFFFF#000000##FFFFFF
##2F25A81.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f25a8;
/* rgb */ color: rgb(47, 37, 168);
/* oklch */ color: oklch(38.2% 0.197 275.1);
Tailwind
colors: {
  custom: {
    50: '#7b62c3',
    500: '#2f25a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f25a8;
$custom-light: #7b62c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f25a8",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 244.58,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38229,
    "c": 0.19663,
    "h": 275.1
  },
  "luminance": 0.04755
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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