#1F258F#1F258F

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

Color values

HEX#1F258F
RGBrgb(31, 37, 143)
HSLhsl(237, 64%, 34%)
HSVhsv(237, 78%, 56%)
CMYKcmyk(78.3%, 74.1%, 0%, 43.9%)
CIE-LABlab(22.29, 36.04, -58.61)
CIE-LCHlch(22.29, 68.81, 301.59°)
OKLaboklab(34.52% 0.0029 -0.1697)
OKLCHoklch(34.52% 0.17 271)
XYZxyz(6.1829, 3.5969, 26.3497)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F258F #8F891F
analogous
#1F5D8F #1F258F #511F8F
triadic
#1F258F #8F1F25 #258F1F
tetradic
#1F258F #8F1F5D #8F891F #1F8F51
square
#1F258F #8F1F5D #8F891F #1F8F51
split-complementary
#1F258F #8F511F #5D8F1F
monochromatic
#090B2A #14185D #1F258F #2A32C1 #4F57D9

Accessibility & contrast

On white

12.21
#1F258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F258F
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F258F#FFFFFF#000000##FFFFFF
##1F258F1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f258f;
/* rgb */ color: rgb(31, 37, 143);
/* oklch */ color: oklch(34.5% 0.170 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f60b1',
    500: '#1f258f',
    950: '#000000',
  },
}
SCSS
$custom: #1f258f;
$custom-light: #6f60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f258f",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 236.786,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34515,
    "c": 0.16973,
    "h": 271
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#1F258F
secondary
#BCB64E
accent
#DE40E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F258F

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

Preview Lab → · Contrast checker → · Palette generator →

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