#2F25AA#2F25AA

#2F25AA is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.4% C 0.199 H 274.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2F25AA
RGBrgb(47, 37, 170)
HSLhsl(245, 64%, 41%)
HSVhsv(245, 78%, 67%)
CMYKcmyk(72.4%, 78.2%, 0%, 33.3%)
CIE-LABlab(26.24, 46.55, -68.57)
CIE-LCHlch(26.24, 82.88, 304.18°)
OKLaboklab(38.45% 0.0171 -0.1983)
OKLCHoklch(38.45% 0.199 274.9)
XYZxyz(9.0872, 4.8289, 38.4756)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F25AA #A0AA25
analogous
#255EAA #2F25AA #7125AA
triadic
#2F25AA #AA2F25 #25AA2F
tetradic
#2F25AA #AA255E #A0AA25 #25AA71
square
#2F25AA #AA255E #A0AA25 #25AA71
split-complementary
#2F25AA #AA7125 #5EAA25
monochromatic
#130F45 #211A78 #2F25AA #4438D4 #736BDF

Accessibility & contrast

On white

10.68
#2F25AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2F25AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F25AA
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F25AA#FFFFFF#000000##FFFFFF
##2F25AA1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AE
Deuteranopia (green-blind)
#0038A8
Tritanopia (blue-blind)
#004D67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f25aa;
/* rgb */ color: rgb(47, 37, 170);
/* oklch */ color: oklch(38.4% 0.199 274.9);
Tailwind
colors: {
  custom: {
    50: '#7b63c5',
    500: '#2f25aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f25aa;
$custom-light: #7b63c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f25aa",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 170
  },
  "hsl": {
    "h": 244.511,
    "s": 64.251,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38448,
    "c": 0.19903,
    "h": 274.9
  },
  "luminance": 0.0483
}

Semantic roles & 50–950 ramp

primary
#2F25AA
secondary
#BEC566
accent
#E741DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2F25AA

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

Preview Lab → · Contrast checker → · Palette generator →

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