#2F25A0#2F25A0

#2F25A0 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.187 H 276.0°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#2F25A0
RGBrgb(47, 37, 160)
HSLhsl(245, 62%, 39%)
HSVhsv(245, 77%, 63%)
CMYKcmyk(70.6%, 76.9%, 0%, 37.3%)
CIE-LABlab(25.15, 43.35, -64.31)
CIE-LCHlch(25.15, 77.55, 303.98°)
OKLaboklab(37.36% 0.0195 -0.1859)
OKLCHoklch(37.36% 0.187 276)
XYZxyz(8.1769, 4.4648, 33.6818)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F25A0 #96A025
analogous
#2558A0 #2F25A0 #6C25A0
triadic
#2F25A0 #A02F25 #25A02F
tetradic
#2F25A0 #A02558 #96A025 #25A06C
square
#2F25A0 #A02558 #96A025 #25A06C
split-complementary
#2F25A0 #A06C25 #58A025
monochromatic
#120E3D #201A6E #2F25A0 #3F32D0 #6E64DB

Accessibility & contrast

On white

11.09
#2F25A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F25A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F25A0
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F25A0#FFFFFF#000000##FFFFFF
##2F25A01.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00369E
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f25a0;
/* rgb */ color: rgb(47, 37, 160);
/* oklch */ color: oklch(37.4% 0.187 276.0);
Tailwind
colors: {
  custom: {
    50: '#7962bd',
    500: '#2f25a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f25a0;
$custom-light: #7962bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f25a0",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 160
  },
  "hsl": {
    "h": 244.878,
    "s": 62.437,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37361,
    "c": 0.18693,
    "h": 276
  },
  "luminance": 0.04466
}

Semantic roles & 50–950 ramp

primary
#2F25A0
secondary
#B9C160
accent
#E642D8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F25A0

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

Preview Lab → · Contrast checker → · Palette generator →

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