#1F259C#1F259C

#1F259C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.186 H 270.3°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#1F259C
RGBrgb(31, 37, 156)
HSLhsl(237, 67%, 37%)
HSVhsv(237, 80%, 61%)
CMYKcmyk(80.1%, 76.3%, 0%, 38.8%)
CIE-LABlab(23.72, 40.61, -64.27)
CIE-LCHlch(23.72, 76.03, 302.29°)
OKLaboklab(35.95% 0.0008 -0.1861)
OKLCHoklch(35.95% 0.186 270.3)
XYZxyz(7.2253, 4.0139, 31.8400)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F259C #9C961F
analogous
#1F649C #1F259C #581F9C
triadic
#1F259C #9C1F25 #259C1F
tetradic
#1F259C #9C1F64 #9C961F #1F9C58
square
#1F259C #9C1F64 #9C961F #1F9C58
split-complementary
#1F259C #9C581F #649C1F
monochromatic
#0B0D36 #151969 #1F259C #2931CF #585EDE

Accessibility & contrast

On white

11.65
#1F259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F259C
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F259C#FFFFFF#000000##FFFFFF
##1F259C1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f259c;
/* rgb */ color: rgb(31, 37, 156);
/* oklch */ color: oklch(36.0% 0.186 270.3);
Tailwind
colors: {
  custom: {
    50: '#7261ba',
    500: '#1f259c',
    950: '#000000',
  },
}
SCSS
$custom: #1f259c;
$custom-light: #7261ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f259c",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 237.12,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35953,
    "c": 0.18615,
    "h": 270.3
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#1F259C
secondary
#C1BC55
accent
#E23EEA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #1F259C

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

Preview Lab → · Contrast checker → · Palette generator →

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