#2F25A5#2F25A5

#2F25A5 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.9% C 0.193 H 275.4°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#2F25A5
RGBrgb(47, 37, 165)
HSLhsl(245, 63%, 40%)
HSVhsv(245, 78%, 65%)
CMYKcmyk(71.5%, 77.6%, 0%, 35.3%)
CIE-LABlab(25.69, 44.96, -66.45)
CIE-LCHlch(25.69, 80.23, 304.08°)
OKLaboklab(37.9% 0.0183 -0.1921)
OKLCHoklch(37.9% 0.193 275.4)
XYZxyz(8.6232, 4.6433, 36.0318)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F25A5 #9BA525
analogous
#255BA5 #2F25A5 #6F25A5
triadic
#2F25A5 #A52F25 #25A52F
tetradic
#2F25A5 #A5255B #9BA525 #25A56F
square
#2F25A5 #A5255B #9BA525 #25A56F
split-complementary
#2F25A5 #A56F25 #5BA525
monochromatic
#130F41 #211A73 #2F25A5 #4235D2 #7167DD

Accessibility & contrast

On white

10.89
#2F25A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F25A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F25A5
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F25A5#FFFFFF#000000##FFFFFF
##2F25A51.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f25a5;
/* rgb */ color: rgb(47, 37, 165);
/* oklch */ color: oklch(37.9% 0.193 275.4);
Tailwind
colors: {
  custom: {
    50: '#7a62c1',
    500: '#2f25a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f25a5;
$custom-light: #7a62c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f25a5",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 244.688,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37902,
    "c": 0.19301,
    "h": 275.4
  },
  "luminance": 0.04644
}

Semantic roles & 50–950 ramp

primary
#2F25A5
secondary
#BBC363
accent
#E641DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2F25A5

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

Preview Lab → · Contrast checker → · Palette generator →

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