#1F257E#1F257E

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

Color values

HEX#1F257E
RGBrgb(31, 37, 126)
HSLhsl(236, 61%, 31%)
HSVhsv(236, 75%, 49%)
CMYKcmyk(75.4%, 70.6%, 0%, 50.6%)
CIE-LABlab(20.52, 29.83, -50.86)
CIE-LCHlch(20.52, 58.97, 300.39°)
OKLaboklab(32.71% 0.0052 -0.1471)
OKLCHoklch(32.71% 0.147 272)
XYZxyz(4.9913, 3.1203, 20.0738)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F257E #7E781F
analogous
#1F547E #1F257E #481F7E
triadic
#1F257E #7E1F25 #257E1F
tetradic
#1F257E #7E1F54 #7E781F #1F7E48
square
#1F257E #7E1F54 #7E781F #1F7E48
split-complementary
#1F257E #7E481F #547E1F
monochromatic
#07081C #13174D #1F257E #2B33AF #464FD1

Accessibility & contrast

On white

12.93
#1F257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F257E
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F257E#FFFFFF#000000##FFFFFF
##1F257E1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f257e;
/* rgb */ color: rgb(31, 37, 126);
/* oklch */ color: oklch(32.7% 0.147 272.0);
Tailwind
colors: {
  custom: {
    50: '#6b60a4',
    500: '#1f257e',
    950: '#000000',
  },
}
SCSS
$custom: #1f257e;
$custom-light: #6b60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f257e",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 236.211,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32707,
    "c": 0.1472,
    "h": 272
  },
  "luminance": 0.03121
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F257E

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

Preview Lab → · Contrast checker → · Palette generator →

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