#1F2D8F#1F2D8F

#1F2D8F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.161 H 269.6°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#1F2D8F
RGBrgb(31, 45, 143)
HSLhsl(233, 64%, 34%)
HSVhsv(233, 78%, 56%)
CMYKcmyk(78.3%, 68.5%, 0%, 43.9%)
CIE-LABlab(24.16, 30.93, -55.53)
CIE-LCHlch(24.16, 63.57, 299.12°)
OKLaboklab(35.87% -0.0012 -0.1607)
OKLCHoklch(35.87% 0.161 269.6)
XYZxyz(6.4597, 4.1505, 26.4420)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D8F #8F811F
analogous
#1F658F #1F2D8F #491F8F
triadic
#1F2D8F #8F1F2D #2D8F1F
tetradic
#1F2D8F #8F1F65 #8F811F #1F8F49
square
#1F2D8F #8F1F65 #8F811F #1F8F49
split-complementary
#1F2D8F #8F491F #658F1F
monochromatic
#090D2A #141D5D #1F2D8F #2A3DC1 #4F61D9

Accessibility & contrast

On white

11.47
#1F2D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F2D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D8F
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D8F#FFFFFF#000000##FFFFFF
##1F2D8F1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2d8f;
/* rgb */ color: rgb(31, 45, 143);
/* oklch */ color: oklch(35.9% 0.161 269.6);
Tailwind
colors: {
  custom: {
    50: '#6e66b1',
    500: '#1f2d8f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d8f;
$custom-light: #6e66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d8f",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 232.5,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35866,
    "c": 0.16072,
    "h": 269.6
  },
  "luminance": 0.04151
}

Semantic roles & 50–950 ramp

primary
#1F2D8F
secondary
#BCAE4E
accent
#D240E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F2D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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