#2F25A2#2F25A2

#2F25A2 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.6% C 0.189 H 275.8°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#2F25A2
RGBrgb(47, 37, 162)
HSLhsl(245, 63%, 39%)
HSVhsv(245, 77%, 64%)
CMYKcmyk(71%, 77.2%, 0%, 36.5%)
CIE-LABlab(25.37, 43.99, -65.17)
CIE-LCHlch(25.37, 78.63, 304.02°)
OKLaboklab(37.58% 0.019 -0.1884)
OKLCHoklch(37.58% 0.189 275.8)
XYZxyz(8.3533, 4.5353, 34.6106)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F25A2 #98A225
analogous
#255AA2 #2F25A2 #6E25A2
triadic
#2F25A2 #A22F25 #25A22F
tetradic
#2F25A2 #A2255A #98A225 #25A26E
square
#2F25A2 #A2255A #98A225 #25A26E
split-complementary
#2F25A2 #A26E25 #5AA225
monochromatic
#120E3E #211A70 #2F25A2 #4034D1 #6F65DC

Accessibility & contrast

On white

11.01
#2F25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F25A2
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F25A2#FFFFFF#000000##FFFFFF
##2F25A21.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A6
Deuteranopia (green-blind)
#0036A0
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f25a2;
/* rgb */ color: rgb(47, 37, 162);
/* oklch */ color: oklch(37.6% 0.189 275.8);
Tailwind
colors: {
  custom: {
    50: '#7962bf',
    500: '#2f25a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f25a2;
$custom-light: #7962bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f25a2",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 244.8,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37577,
    "c": 0.18937,
    "h": 275.8
  },
  "luminance": 0.04536
}

Semantic roles & 50–950 ramp

primary
#2F25A2
secondary
#BAC261
accent
#E642D9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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