#1F25B0#1F25B0

#1F25B0 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.2% C 0.210 H 269.3°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#1F25B0
RGBrgb(31, 37, 176)
HSLhsl(238, 70%, 41%)
HSVhsv(238, 82%, 69%)
CMYKcmyk(82.4%, 79%, 0%, 31%)
CIE-LABlab(26.00, 47.35, -72.59)
CIE-LCHlch(26.00, 86.67, 303.12°)
OKLaboklab(38.24% -0.0026 -0.2103)
OKLCHoklch(38.24% 0.21 269.3)
XYZxyz(9.0604, 4.7480, 41.5048)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F25B0 #B0AA1F
analogous
#1F6DB0 #1F25B0 #611FB0
triadic
#1F25B0 #B01F25 #25B01F
tetradic
#1F25B0 #B01F6D #B0AA1F #1FB061
square
#1F25B0 #B01F6D #B0AA1F #1FB061
split-complementary
#1F25B0 #B0611F #6DB01F
monochromatic
#0D0F48 #161A7C #1F25B0 #3138DB #656BE4

Accessibility & contrast

On white

10.77
#1F25B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F25B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F25B0
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F25B0#FFFFFF#000000##FFFFFF
##1F25B01.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B4
Deuteranopia (green-blind)
#0036AE
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f25b0;
/* rgb */ color: rgb(31, 37, 176);
/* oklch */ color: oklch(38.2% 0.210 269.3);
Tailwind
colors: {
  custom: {
    50: '#7862c9',
    500: '#1f25b0',
    950: '#000000',
  },
}
SCSS
$custom: #1f25b0;
$custom-light: #7862c9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f25b0",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 176
  },
  "hsl": {
    "h": 237.517,
    "s": 70.048,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38235,
    "c": 0.2103,
    "h": 269.3
  },
  "luminance": 0.04749
}

Semantic roles & 50–950 ramp

primary
#1F25B0
secondary
#C9C562
accent
#E53BED
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #1F25B0

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

Preview Lab → · Contrast checker → · Palette generator →

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