#1F258E#1F258E

#1F258E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.168 H 271.0°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#1F258E
RGBrgb(31, 37, 142)
HSLhsl(237, 64%, 34%)
HSVhsv(237, 78%, 56%)
CMYKcmyk(78.2%, 73.9%, 0%, 44.3%)
CIE-LABlab(22.18, 35.68, -58.17)
CIE-LCHlch(22.18, 68.24, 301.52°)
OKLaboklab(34.41% 0.0031 -0.1684)
OKLCHoklch(34.41% 0.168 271)
XYZxyz(6.1075, 3.5668, 25.9525)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F258E #8E881F
analogous
#1F5D8E #1F258E #511F8E
triadic
#1F258E #8E1F25 #258E1F
tetradic
#1F258E #8E1F5D #8E881F #1F8E51
square
#1F258E #8E1F5D #8E881F #1F8E51
split-complementary
#1F258E #8E511F #5D8E1F
monochromatic
#090B2A #14185C #1F258E #2A32C0 #4F56D9

Accessibility & contrast

On white

12.26
#1F258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F258E
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F258E#FFFFFF#000000##FFFFFF
##1F258E1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f258e;
/* rgb */ color: rgb(31, 37, 142);
/* oklch */ color: oklch(34.4% 0.168 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f60b0',
    500: '#1f258e',
    950: '#000000',
  },
}
SCSS
$custom: #1f258e;
$custom-light: #6f60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f258e",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 236.757,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34406,
    "c": 0.16844,
    "h": 271
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#1F258E
secondary
#BBB64D
accent
#DE41E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F258E

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

Preview Lab → · Contrast checker → · Palette generator →

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