#1F2D7A#1F2D7A

#1F2D7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.132 H 269.9°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#1F2D7A
RGBrgb(31, 45, 122)
HSLhsl(231, 59%, 30%)
HSVhsv(231, 75%, 48%)
CMYKcmyk(74.6%, 63.1%, 0%, 52.2%)
CIE-LABlab(22.21, 22.86, -45.56)
CIE-LCHlch(22.21, 50.98, 296.64°)
OKLaboklab(33.83% -0.0002 -0.1315)
OKLCHoklch(33.83% 0.132 269.9)
XYZxyz(5.0151, 3.5727, 18.8339)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D7A #7A6C1F
analogous
#1F5B7A #1F2D7A #3E1F7A
triadic
#1F2D7A #7A1F2D #2D7A1F
tetradic
#1F2D7A #7A1F5B #7A6C1F #1F7A3E
square
#1F2D7A #7A1F5B #7A6C1F #1F7A3E
split-complementary
#1F2D7A #7A3E1F #5B7A1F
monochromatic
#060918 #131B49 #1F2D7A #2B3FAB #4459CF

Accessibility & contrast

On white

12.25
#1F2D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D7A
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D7A#FFFFFF#000000##FFFFFF
##1F2D7A1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2d7a;
/* rgb */ color: rgb(31, 45, 122);
/* oklch */ color: oklch(33.8% 0.132 269.9);
Tailwind
colors: {
  custom: {
    50: '#6965a1',
    500: '#1f2d7a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d7a;
$custom-light: #6965a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d7a",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 230.769,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.33826,
    "c": 0.13153,
    "h": 269.9
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#1F2D7A
secondary
#AD9E47
accent
#CA45E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1F2D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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