#1F2E6A#1F2E6A

#1F2E6A is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.6% C 0.106 H 269.2°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#1F2E6A
RGBrgb(31, 46, 106)
HSLhsl(228, 55%, 27%)
HSVhsv(228, 71%, 42%)
CMYKcmyk(70.8%, 56.6%, 0%, 58.4%)
CIE-LABlab(21.15, 15.82, -37.01)
CIE-LCHlch(21.15, 40.25, 293.15°)
OKLaboklab(32.62% -0.0016 -0.1064)
OKLCHoklch(32.62% 0.106 269.2)
XYZxyz(4.1427, 3.2855, 14.0487)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E6A #6A5B1F
analogous
#1F546A #1F2E6A #361F6A
triadic
#1F2E6A #6A1F2E #2E6A1F
tetradic
#1F2E6A #6A1F54 #6A5B1F #1F6A36
square
#1F2E6A #6A1F54 #6A5B1F #1F6A36
split-complementary
#1F2E6A #6A361F #546A1F
monochromatic
#070A18 #11193B #1F2E6A #2D4399 #3D59C6

Accessibility & contrast

On white

12.67
#1F2E6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2E6A
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E6A#FFFFFF#000000##FFFFFF
##1F2E6A1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04366C
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#003C47
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2e6a;
/* rgb */ color: rgb(31, 46, 106);
/* oklch */ color: oklch(32.6% 0.106 269.2);
Tailwind
colors: {
  custom: {
    50: '#656695',
    500: '#1f2e6a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e6a;
$custom-light: #656695;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e6a",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 106
  },
  "hsl": {
    "h": 228,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3262,
    "c": 0.10637,
    "h": 269.2
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#1F2E6A
secondary
#9E8D47
accent
#C04ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #1F2E6A

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

Preview Lab → · Contrast checker → · Palette generator →

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