#1F257A#1F257A

#1F257A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.142 H 272.3°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#1F257A
RGBrgb(31, 37, 122)
HSLhsl(236, 59%, 30%)
HSVhsv(236, 75%, 48%)
CMYKcmyk(74.6%, 69.7%, 0%, 52.2%)
CIE-LABlab(20.12, 28.33, -48.98)
CIE-LCHlch(20.12, 56.58, 300.05°)
OKLaboklab(32.3% 0.0057 -0.1416)
OKLCHoklch(32.3% 0.142 272.3)
XYZxyz(4.7383, 3.0191, 18.7416)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F257A #7A741F
analogous
#1F527A #1F257A #471F7A
triadic
#1F257A #7A1F25 #257A1F
tetradic
#1F257A #7A1F52 #7A741F #1F7A47
square
#1F257A #7A1F52 #7A741F #1F7A47
split-complementary
#1F257A #7A471F #527A1F
monochromatic
#060718 #131649 #1F257A #2B34AB #444DCF

Accessibility & contrast

On white

13.09
#1F257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1F257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F257A
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F257A#FFFFFF#000000##FFFFFF
##1F257A1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f257a;
/* rgb */ color: rgb(31, 37, 122);
/* oklch */ color: oklch(32.3% 0.142 272.3);
Tailwind
colors: {
  custom: {
    50: '#6960a1',
    500: '#1f257a',
    950: '#000000',
  },
}
SCSS
$custom: #1f257a;
$custom-light: #6960a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f257a",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 236.044,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.32296,
    "c": 0.1417,
    "h": 272.3
  },
  "luminance": 0.0302
}

Semantic roles & 50–950 ramp

primary
#1F257A
secondary
#ADA747
accent
#D845E3
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F257A

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

Preview Lab → · Contrast checker → · Palette generator →

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