#1F259E#1F259E

#1F259E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.189 H 270.2°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#1F259E
RGBrgb(31, 37, 158)
HSLhsl(237, 67%, 37%)
HSVhsv(237, 80%, 62%)
CMYKcmyk(80.4%, 76.6%, 0%, 38%)
CIE-LABlab(23.94, 41.30, -65.12)
CIE-LCHlch(23.94, 77.12, 302.38°)
OKLaboklab(36.18% 0.0005 -0.1886)
OKLCHoklch(36.18% 0.189 270.2)
XYZxyz(7.3961, 4.0822, 32.7393)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F259E #9E981F
analogous
#1F659E #1F259E #581F9E
triadic
#1F259E #9E1F25 #259E1F
tetradic
#1F259E #9E1F65 #9E981F #1F9E58
square
#1F259E #9E1F65 #9E981F #1F9E58
split-complementary
#1F259E #9E581F #659E1F
monochromatic
#0B0D38 #15196B #1F259E #2931D1 #595FDE

Accessibility & contrast

On white

11.56
#1F259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F259E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F259E
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F259E#FFFFFF#000000##FFFFFF
##1F259E1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f259e;
/* rgb */ color: rgb(31, 37, 158);
/* oklch */ color: oklch(36.2% 0.189 270.2);
Tailwind
colors: {
  custom: {
    50: '#7361bc',
    500: '#1f259e',
    950: '#000000',
  },
}
SCSS
$custom: #1f259e;
$custom-light: #7361bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f259e",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 237.165,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36178,
    "c": 0.18863,
    "h": 270.2
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F259E

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

Preview Lab → · Contrast checker → · Palette generator →

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