#1F259A#1F259A

#1F259A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.184 H 270.4°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#1F259A
RGBrgb(31, 37, 154)
HSLhsl(237, 66%, 36%)
HSVhsv(237, 80%, 60%)
CMYKcmyk(79.9%, 76%, 0%, 39.6%)
CIE-LABlab(23.49, 39.92, -63.42)
CIE-LCHlch(23.49, 74.93, 302.19°)
OKLaboklab(35.73% 0.0012 -0.1837)
OKLCHoklch(35.73% 0.184 270.4)
XYZxyz(7.0574, 3.9467, 30.9554)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F259A #9A941F
analogous
#1F639A #1F259A #571F9A
triadic
#1F259A #9A1F25 #259A1F
tetradic
#1F259A #9A1F63 #9A941F #1F9A57
square
#1F259A #9A1F63 #9A941F #1F9A57
split-complementary
#1F259A #9A571F #639A1F
monochromatic
#0A0D34 #151967 #1F259A #2931CD #565DDD

Accessibility & contrast

On white

11.73
#1F259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F259A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F259A
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F259A#FFFFFF#000000##FFFFFF
##1F259A1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f259a;
/* rgb */ color: rgb(31, 37, 154);
/* oklch */ color: oklch(35.7% 0.184 270.4);
Tailwind
colors: {
  custom: {
    50: '#7261b9',
    500: '#1f259a',
    950: '#000000',
  },
}
SCSS
$custom: #1f259a;
$custom-light: #7261b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f259a",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 237.073,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35729,
    "c": 0.18366,
    "h": 270.4
  },
  "luminance": 0.03948
}

Semantic roles & 50–950 ramp

primary
#1F259A
secondary
#C1BB54
accent
#E13EE9
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #1F259A

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

Preview Lab → · Contrast checker → · Palette generator →

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