#1F259D#1F259D

#1F259D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.187 H 270.2°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#1F259D
RGBrgb(31, 37, 157)
HSLhsl(237, 67%, 37%)
HSVhsv(237, 80%, 62%)
CMYKcmyk(80.3%, 76.4%, 0%, 38.4%)
CIE-LABlab(23.83, 40.96, -64.70)
CIE-LCHlch(23.83, 76.57, 302.34°)
OKLaboklab(36.07% 0.0007 -0.1874)
OKLCHoklch(36.07% 0.187 270.2)
XYZxyz(7.3104, 4.0479, 32.2878)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F259D #9D971F
analogous
#1F649D #1F259D #581F9D
triadic
#1F259D #9D1F25 #259D1F
tetradic
#1F259D #9D1F64 #9D971F #1F9D58
square
#1F259D #9D1F64 #9D971F #1F9D58
split-complementary
#1F259D #9D581F #649D1F
monochromatic
#0B0D37 #15196A #1F259D #2931D0 #585FDE

Accessibility & contrast

On white

11.60
#1F259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F259D
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F259D#FFFFFF#000000##FFFFFF
##1F259D1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f259d;
/* rgb */ color: rgb(31, 37, 157);
/* oklch */ color: oklch(36.1% 0.187 270.2);
Tailwind
colors: {
  custom: {
    50: '#7361bb',
    500: '#1f259d',
    950: '#000000',
  },
}
SCSS
$custom: #1f259d;
$custom-light: #7361bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f259d",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 237.143,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36065,
    "c": 0.18739,
    "h": 270.2
  },
  "luminance": 0.04049
}

Semantic roles & 50–950 ramp

primary
#1F259D
secondary
#C2BD56
accent
#E23EEA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F259D

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

Preview Lab → · Contrast checker → · Palette generator →

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