#1F258D#1F258D

#1F258D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.167 H 271.1°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#1F258D
RGBrgb(31, 37, 141)
HSLhsl(237, 64%, 34%)
HSVhsv(237, 78%, 55%)
CMYKcmyk(78%, 73.8%, 0%, 44.7%)
CIE-LABlab(22.08, 35.32, -57.72)
CIE-LCHlch(22.08, 67.67, 301.46°)
OKLaboklab(34.3% 0.0032 -0.1671)
OKLCHoklch(34.3% 0.167 271.1)
XYZxyz(6.0327, 3.5369, 25.5589)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F258D #8D871F
analogous
#1F5C8D #1F258D #501F8D
triadic
#1F258D #8D1F25 #258D1F
tetradic
#1F258D #8D1F5C #8D871F #1F8D50
square
#1F258D #8D1F5C #8D871F #1F8D50
split-complementary
#1F258D #8D501F #5C8D1F
monochromatic
#090B29 #14185B #1F258D #2A32BF #4E56D8

Accessibility & contrast

On white

12.30
#1F258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F258D
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F258D#FFFFFF#000000##FFFFFF
##1F258D1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f258d;
/* rgb */ color: rgb(31, 37, 141);
/* oklch */ color: oklch(34.3% 0.167 271.1);
Tailwind
colors: {
  custom: {
    50: '#6e60af',
    500: '#1f258d',
    950: '#000000',
  },
}
SCSS
$custom: #1f258d;
$custom-light: #6e60af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f258d",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 236.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34298,
    "c": 0.16714,
    "h": 271.1
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

primary
#1F258D
secondary
#BBB54D
accent
#DE41E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F258D

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

Preview Lab → · Contrast checker → · Palette generator →

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