#1F258A#1F258A

#1F258A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.163 H 271.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1F258A
RGBrgb(31, 37, 138)
HSLhsl(237, 63%, 33%)
HSVhsv(237, 78%, 54%)
CMYKcmyk(77.5%, 73.2%, 0%, 45.9%)
CIE-LABlab(21.76, 34.24, -56.38)
CIE-LCHlch(21.76, 65.96, 301.27°)
OKLaboklab(33.97% 0.0037 -0.1632)
OKLCHoklch(33.97% 0.163 271.3)
XYZxyz(5.8125, 3.4488, 24.3992)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F258A #8A841F
analogous
#1F5A8A #1F258A #4F1F8A
triadic
#1F258A #8A1F25 #258A1F
tetradic
#1F258A #8A1F5A #8A841F #1F8A4F
square
#1F258A #8A1F5A #8A841F #1F8A4F
split-complementary
#1F258A #8A4F1F #5A8A1F
monochromatic
#090A26 #141858 #1F258A #2A32BC #4C54D7

Accessibility & contrast

On white

12.43
#1F258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F258A
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F258A#FFFFFF#000000##FFFFFF
##1F258A1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f258a;
/* rgb */ color: rgb(31, 37, 138);
/* oklch */ color: oklch(34.0% 0.163 271.3);
Tailwind
colors: {
  custom: {
    50: '#6e60ad',
    500: '#1f258a',
    950: '#000000',
  },
}
SCSS
$custom: #1f258a;
$custom-light: #6e60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f258a",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 236.636,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33974,
    "c": 0.16323,
    "h": 271.3
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#1F258A
secondary
#BAB34B
accent
#DD41E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F258A

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

Preview Lab → · Contrast checker → · Palette generator →

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