#1F25A8#1F25A8

#1F25A8 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.3% C 0.201 H 269.7°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#1F25A8
RGBrgb(31, 37, 168)
HSLhsl(237, 69%, 39%)
HSVhsv(237, 82%, 66%)
CMYKcmyk(81.5%, 78%, 0%, 34.1%)
CIE-LABlab(25.08, 44.70, -69.32)
CIE-LCHlch(25.08, 82.48, 302.82°)
OKLaboklab(37.31% -0.0012 -0.2008)
OKLCHoklch(37.31% 0.201 269.7)
XYZxyz(8.2921, 4.4406, 37.4583)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F25A8 #A8A21F
analogous
#1F6AA8 #1F25A8 #5E1FA8
triadic
#1F25A8 #A81F25 #25A81F
tetradic
#1F25A8 #A81F6A #A8A21F #1FA85E
square
#1F25A8 #A81F6A #A8A21F #1FA85E
split-complementary
#1F25A8 #A85E1F #6AA81F
monochromatic
#0C0E41 #151A74 #1F25A8 #2C34D8 #6065E2

Accessibility & contrast

On white

11.12
#1F25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F25A8
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F25A8#FFFFFF#000000##FFFFFF
##1F25A81.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0034A6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f25a8;
/* rgb */ color: rgb(31, 37, 168);
/* oklch */ color: oklch(37.3% 0.201 269.7);
Tailwind
colors: {
  custom: {
    50: '#7662c3',
    500: '#1f25a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f25a8;
$custom-light: #7662c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f25a8",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 237.372,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37313,
    "c": 0.20079,
    "h": 269.7
  },
  "luminance": 0.04442
}

Semantic roles & 50–950 ramp

primary
#1F25A8
secondary
#C6C25D
accent
#E43CEC
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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