#1F2D6E#1F2D6E

#1F2D6E is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.7% C 0.114 H 269.8°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#1F2D6E
RGBrgb(31, 45, 110)
HSLhsl(229, 56%, 28%)
HSVhsv(229, 72%, 43%)
CMYKcmyk(71.8%, 59.1%, 0%, 56.9%)
CIE-LABlab(21.18, 18.12, -39.54)
CIE-LCHlch(21.18, 43.50, 294.62°)
OKLaboklab(32.74% -0.0004 -0.1138)
OKLCHoklch(32.74% 0.114 269.8)
XYZxyz(4.3170, 3.2935, 15.1570)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D6E #6E601F
analogous
#1F546E #1F2D6E #381F6E
triadic
#1F2D6E #6E1F2D #2D6E1F
tetradic
#1F2D6E #6E1F54 #6E601F #1F6E38
square
#1F2D6E #6E1F54 #6E601F #1F6E38
split-complementary
#1F2D6E #6E381F #546E1F
monochromatic
#070A18 #12193E #1F2D6E #2C419E #3F57C9

Accessibility & contrast

On white

12.66
#1F2D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F2D6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D6E
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D6E#FFFFFF#000000##FFFFFF
##1F2D6E1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003770
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#003D48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2d6e;
/* rgb */ color: rgb(31, 45, 110);
/* oklch */ color: oklch(32.7% 0.114 269.8);
Tailwind
colors: {
  custom: {
    50: '#666598',
    500: '#1f2d6e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d6e;
$custom-light: #666598;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d6e",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 110
  },
  "hsl": {
    "h": 229.367,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32744,
    "c": 0.11384,
    "h": 269.8
  },
  "luminance": 0.03294
}

Semantic roles & 50–950 ramp

primary
#1F2D6E
secondary
#A29247
accent
#C548DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #1F2D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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