#1F257C#1F257C

#1F257C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.144 H 272.2°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#1F257C
RGBrgb(31, 37, 124)
HSLhsl(236, 60%, 30%)
HSVhsv(236, 75%, 49%)
CMYKcmyk(75%, 70.2%, 0%, 51.4%)
CIE-LABlab(20.32, 29.08, -49.92)
CIE-LCHlch(20.32, 57.78, 300.22°)
OKLaboklab(32.5% 0.0055 -0.1444)
OKLCHoklch(32.5% 0.144 272.2)
XYZxyz(4.8635, 3.0692, 19.4010)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F257C #7C761F
analogous
#1F537C #1F257C #471F7C
triadic
#1F257C #7C1F25 #257C1F
tetradic
#1F257C #7C1F53 #7C761F #1F7C47
square
#1F257C #7C1F53 #7C761F #1F7C47
split-complementary
#1F257C #7C471F #537C1F
monochromatic
#07081A #13164B #1F257C #2B34AD #454ED0

Accessibility & contrast

On white

13.01
#1F257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F257C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F257C
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F257C#FFFFFF#000000##FFFFFF
##1F257C1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f257c;
/* rgb */ color: rgb(31, 37, 124);
/* oklch */ color: oklch(32.5% 0.144 272.2);
Tailwind
colors: {
  custom: {
    50: '#6a60a3',
    500: '#1f257c',
    950: '#000000',
  },
}
SCSS
$custom: #1f257c;
$custom-light: #6a60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f257c",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 236.129,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32501,
    "c": 0.14446,
    "h": 272.2
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

primary
#1F257C
secondary
#AFA948
accent
#D945E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F257C

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

Preview Lab → · Contrast checker → · Palette generator →

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