#1F257D#1F257D

#1F257D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.146 H 272.1°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#1F257D
RGBrgb(31, 37, 125)
HSLhsl(236, 60%, 31%)
HSVhsv(236, 75%, 49%)
CMYKcmyk(75.2%, 70.4%, 0%, 51%)
CIE-LABlab(20.42, 29.45, -50.40)
CIE-LCHlch(20.42, 58.37, 300.31°)
OKLaboklab(32.6% 0.0054 -0.1457)
OKLCHoklch(32.6% 0.146 272.1)
XYZxyz(4.9271, 3.0946, 19.7357)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F257D #7D771F
analogous
#1F547D #1F257D #481F7D
triadic
#1F257D #7D1F25 #257D1F
tetradic
#1F257D #7D1F54 #7D771F #1F7D48
square
#1F257D #7D1F54 #7D771F #1F7D48
split-complementary
#1F257D #7D481F #547D1F
monochromatic
#07081B #13164C #1F257D #2B34AE #454ED1

Accessibility & contrast

On white

12.97
#1F257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F257D
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F257D#FFFFFF#000000##FFFFFF
##1F257D1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f257d;
/* rgb */ color: rgb(31, 37, 125);
/* oklch */ color: oklch(32.6% 0.146 272.1);
Tailwind
colors: {
  custom: {
    50: '#6a60a4',
    500: '#1f257d',
    950: '#000000',
  },
}
SCSS
$custom: #1f257d;
$custom-light: #6a60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f257d",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 236.17,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32604,
    "c": 0.14583,
    "h": 272.1
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#1F257D
secondary
#B0A948
accent
#D944E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F257D

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

Preview Lab → · Contrast checker → · Palette generator →

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