#2F25A6#2F25A6

#2F25A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.194 H 275.3°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2F25A6
RGBrgb(47, 37, 166)
HSLhsl(245, 64%, 40%)
HSVhsv(245, 78%, 65%)
CMYKcmyk(71.7%, 77.7%, 0%, 34.9%)
CIE-LABlab(25.80, 45.28, -66.88)
CIE-LCHlch(25.80, 80.76, 304.10°)
OKLaboklab(38.01% 0.0181 -0.1934)
OKLCHoklch(38.01% 0.194 275.3)
XYZxyz(8.7145, 4.6798, 36.5130)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F25A6 #9CA625
analogous
#255CA6 #2F25A6 #6F25A6
triadic
#2F25A6 #A62F25 #25A62F
tetradic
#2F25A6 #A6255C #9CA625 #25A66F
square
#2F25A6 #A6255C #9CA625 #25A66F
split-complementary
#2F25A6 #A66F25 #5CA625
monochromatic
#130F42 #211A74 #2F25A6 #4236D2 #7168DD

Accessibility & contrast

On white

10.85
#2F25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F25A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F25A6
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F25A6#FFFFFF#000000##FFFFFF
##2F25A61.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f25a6;
/* rgb */ color: rgb(47, 37, 166);
/* oklch */ color: oklch(38.0% 0.194 275.3);
Tailwind
colors: {
  custom: {
    50: '#7a62c2',
    500: '#2f25a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f25a6;
$custom-light: #7a62c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f25a6",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 244.651,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38011,
    "c": 0.19422,
    "h": 275.3
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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