#1F257F#1F257F

#1F257F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.149 H 272.0°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#1F257F
RGBrgb(31, 37, 127)
HSLhsl(236, 61%, 31%)
HSVhsv(236, 76%, 50%)
CMYKcmyk(75.6%, 70.9%, 0%, 50.2%)
CIE-LABlab(20.62, 30.20, -51.33)
CIE-LCHlch(20.62, 59.56, 300.47°)
OKLaboklab(32.81% 0.0051 -0.1485)
OKLCHoklch(32.81% 0.149 272)
XYZxyz(5.0561, 3.1462, 20.4154)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F257F #7F791F
analogous
#1F557F #1F257F #491F7F
triadic
#1F257F #7F1F25 #257F1F
tetradic
#1F257F #7F1F55 #7F791F #1F7F49
square
#1F257F #7F1F55 #7F791F #1F7F49
split-complementary
#1F257F #7F491F #557F1F
monochromatic
#07081D #13174E #1F257F #2B33B0 #464FD2

Accessibility & contrast

On white

12.89
#1F257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F257F
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F257F#FFFFFF#000000##FFFFFF
##1F257F1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f257f;
/* rgb */ color: rgb(31, 37, 127);
/* oklch */ color: oklch(32.8% 0.149 272.0);
Tailwind
colors: {
  custom: {
    50: '#6b60a5',
    500: '#1f257f',
    950: '#000000',
  },
}
SCSS
$custom: #1f257f;
$custom-light: #6b60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f257f",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 236.25,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32811,
    "c": 0.14856,
    "h": 272
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#1F257F
secondary
#B2AB48
accent
#DA44E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #1F257F

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

Preview Lab → · Contrast checker → · Palette generator →

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