#1F258C#1F258C

#1F258C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.166 H 271.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#1F258C
RGBrgb(31, 37, 140)
HSLhsl(237, 64%, 34%)
HSVhsv(237, 78%, 55%)
CMYKcmyk(77.9%, 73.6%, 0%, 45.1%)
CIE-LABlab(21.97, 34.96, -57.28)
CIE-LCHlch(21.97, 67.10, 301.40°)
OKLaboklab(34.19% 0.0034 -0.1658)
OKLCHoklch(34.19% 0.166 271.2)
XYZxyz(5.9587, 3.5072, 25.1688)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F258C #8C861F
analogous
#1F5B8C #1F258C #4F1F8C
triadic
#1F258C #8C1F25 #258C1F
tetradic
#1F258C #8C1F5B #8C861F #1F8C4F
square
#1F258C #8C1F5B #8C861F #1F8C4F
split-complementary
#1F258C #8C4F1F #5B8C1F
monochromatic
#090B28 #14185A #1F258C #2A32BE #4E55D8

Accessibility & contrast

On white

12.34
#1F258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F258C
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F258C#FFFFFF#000000##FFFFFF
##1F258C1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f258c;
/* rgb */ color: rgb(31, 37, 140);
/* oklch */ color: oklch(34.2% 0.166 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e60af',
    500: '#1f258c',
    950: '#000000',
  },
}
SCSS
$custom: #1f258c;
$custom-light: #6e60af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f258c",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 236.697,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3419,
    "c": 0.16584,
    "h": 271.2
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#1F258C
secondary
#BBB44C
accent
#DE41E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F258C

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

Preview Lab → · Contrast checker → · Palette generator →

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