#1F25A9#1F25A9

#1F25A9 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.4% C 0.202 H 269.6°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#1F25A9
RGBrgb(31, 37, 169)
HSLhsl(237, 69%, 39%)
HSVhsv(237, 82%, 66%)
CMYKcmyk(81.7%, 78.1%, 0%, 33.7%)
CIE-LABlab(25.19, 45.03, -69.73)
CIE-LCHlch(25.19, 83.01, 302.86°)
OKLaboklab(37.43% -0.0014 -0.202)
OKLCHoklch(37.43% 0.202 269.6)
XYZxyz(8.3856, 4.4780, 37.9508)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F25A9 #A9A31F
analogous
#1F6AA9 #1F25A9 #5E1FA9
triadic
#1F25A9 #A91F25 #25A91F
tetradic
#1F25A9 #A91F6A #A9A31F #1FA95E
square
#1F25A9 #A91F6A #A9A31F #1FA95E
split-complementary
#1F25A9 #A95E1F #6AA91F
monochromatic
#0C0E42 #161A75 #1F25A9 #2D34D8 #6066E2

Accessibility & contrast

On white

11.08
#1F25A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F25A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F25A9
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F25A9#FFFFFF#000000##FFFFFF
##1F25A91.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AD
Deuteranopia (green-blind)
#0035A7
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f25a9;
/* rgb */ color: rgb(31, 37, 169);
/* oklch */ color: oklch(37.4% 0.202 269.6);
Tailwind
colors: {
  custom: {
    50: '#7662c4',
    500: '#1f25a9',
    950: '#000000',
  },
}
SCSS
$custom: #1f25a9;
$custom-light: #7662c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f25a9",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 169
  },
  "hsl": {
    "h": 237.391,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37428,
    "c": 0.20198,
    "h": 269.6
  },
  "luminance": 0.04479
}

Semantic roles & 50–950 ramp

primary
#1F25A9
secondary
#C7C25D
accent
#E43CEC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F25A9

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

Preview Lab → · Contrast checker → · Palette generator →

#1F25A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva