#2F25A1#2F25A1

#2F25A1 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.188 H 275.9°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#2F25A1
RGBrgb(47, 37, 161)
HSLhsl(245, 63%, 39%)
HSVhsv(245, 77%, 63%)
CMYKcmyk(70.8%, 77%, 0%, 36.9%)
CIE-LABlab(25.26, 43.67, -64.74)
CIE-LCHlch(25.26, 78.09, 304.00°)
OKLaboklab(37.47% 0.0192 -0.1872)
OKLCHoklch(37.47% 0.188 275.9)
XYZxyz(8.2648, 4.4999, 34.1443)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F25A1 #97A125
analogous
#2559A1 #2F25A1 #6D25A1
triadic
#2F25A1 #A12F25 #25A12F
tetradic
#2F25A1 #A12559 #97A125 #25A16D
square
#2F25A1 #A12559 #97A125 #25A16D
split-complementary
#2F25A1 #A16D25 #59A125
monochromatic
#120E3D #201A6F #2F25A1 #4033D0 #6E65DC

Accessibility & contrast

On white

11.05
#2F25A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2F25A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F25A1
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F25A1#FFFFFF#000000##FFFFFF
##2F25A11.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f25a1;
/* rgb */ color: rgb(47, 37, 161);
/* oklch */ color: oklch(37.5% 0.188 275.9);
Tailwind
colors: {
  custom: {
    50: '#7962be',
    500: '#2f25a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f25a1;
$custom-light: #7962be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f25a1",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 161
  },
  "hsl": {
    "h": 244.839,
    "s": 62.626,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37469,
    "c": 0.18815,
    "h": 275.9
  },
  "luminance": 0.04501
}

Semantic roles & 50–950 ramp

primary
#2F25A1
secondary
#B9C161
accent
#E642D8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F25A1

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

Preview Lab → · Contrast checker → · Palette generator →

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