#1F2D6D#1F2D6D

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

Color values

HEX#1F2D6D
RGBrgb(31, 45, 109)
HSLhsl(229, 56%, 27%)
HSVhsv(229, 72%, 43%)
CMYKcmyk(71.6%, 58.7%, 0%, 57.3%)
CIE-LABlab(21.10, 17.73, -39.03)
CIE-LCHlch(21.10, 42.87, 294.43°)
OKLaboklab(32.66% -0.0004 -0.1123)
OKLCHoklch(32.66% 0.112 269.8)
XYZxyz(4.2628, 3.2718, 14.8719)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D6D #6D5F1F
analogous
#1F546D #1F2D6D #381F6D
triadic
#1F2D6D #6D1F2D #2D6D1F
tetradic
#1F2D6D #6D1F54 #6D5F1F #1F6D38
square
#1F2D6D #6D1F54 #6D5F1F #1F6D38
split-complementary
#1F2D6D #6D381F #546D1F
monochromatic
#070A18 #11193D #1F2D6D #2D419D #3E57C8

Accessibility & contrast

On white

12.69
#1F2D6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2D6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D6D
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D6D#FFFFFF#000000##FFFFFF
##1F2D6D1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366F
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#003D48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2d6d;
/* rgb */ color: rgb(31, 45, 109);
/* oklch */ color: oklch(32.7% 0.112 269.8);
Tailwind
colors: {
  custom: {
    50: '#656597',
    500: '#1f2d6d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d6d;
$custom-light: #656597;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d6d",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 109
  },
  "hsl": {
    "h": 229.231,
    "s": 55.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32657,
    "c": 0.11233,
    "h": 269.8
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#1F2D6D
secondary
#A19147
accent
#C449DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #1F2D6D

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

Preview Lab → · Contrast checker → · Palette generator →

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