#1F25A6#1F25A6

#1F25A6 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.198 H 269.7°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#1F25A6
RGBrgb(31, 37, 166)
HSLhsl(237, 69%, 39%)
HSVhsv(237, 81%, 65%)
CMYKcmyk(81.3%, 77.7%, 0%, 34.9%)
CIE-LABlab(24.85, 44.03, -68.49)
CIE-LCHlch(24.85, 81.42, 302.73°)
OKLaboklab(37.09% -0.0009 -0.1984)
OKLCHoklch(37.09% 0.198 269.7)
XYZxyz(8.1072, 4.3667, 36.4846)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F25A6 #A6A01F
analogous
#1F68A6 #1F25A6 #5C1FA6
triadic
#1F25A6 #A61F25 #25A61F
tetradic
#1F25A6 #A61F68 #A6A01F #1FA65C
square
#1F25A6 #A61F68 #A6A01F #1FA65C
split-complementary
#1F25A6 #A65C1F #68A61F
monochromatic
#0C0E3F #151A72 #1F25A6 #2B32D7 #5E64E1

Accessibility & contrast

On white

11.21
#1F25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F25A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F25A6
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F25A6#FFFFFF#000000##FFFFFF
##1F25A61.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f25a6;
/* rgb */ color: rgb(31, 37, 166);
/* oklch */ color: oklch(37.1% 0.198 269.7);
Tailwind
colors: {
  custom: {
    50: '#7562c2',
    500: '#1f25a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f25a6;
$custom-light: #7562c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f25a6",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 237.333,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37085,
    "c": 0.19838,
    "h": 269.7
  },
  "luminance": 0.04368
}

Semantic roles & 50–950 ramp

primary
#1F25A6
secondary
#C5C15B
accent
#E43CEB
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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