#1F2E76#1F2E76

#1F2E76 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.7% C 0.124 H 269.5°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#1F2E76
RGBrgb(31, 46, 118)
HSLhsl(230, 58%, 29%)
HSVhsv(230, 74%, 46%)
CMYKcmyk(73.7%, 61%, 0%, 53.7%)
CIE-LABlab(22.13, 20.58, -43.13)
CIE-LCHlch(22.13, 47.79, 295.51°)
OKLaboklab(33.67% -0.001 -0.1244)
OKLCHoklch(33.67% 0.124 269.5)
XYZxyz(4.8110, 3.5528, 17.5682)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E76 #76671F
analogous
#1F5A76 #1F2E76 #3C1F76
triadic
#1F2E76 #761F2E #2E761F
tetradic
#1F2E76 #761F5A #76671F #1F763C
square
#1F2E76 #761F5A #76671F #1F763C
split-complementary
#1F2E76 #763C1F #5A761F
monochromatic
#060918 #121B46 #1F2E76 #2C41A6 #425ACD

Accessibility & contrast

On white

12.28
#1F2E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2E76
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E76#FFFFFF#000000##FFFFFF
##1F2E761.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003978
Deuteranopia (green-blind)
#003175
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2e76;
/* rgb */ color: rgb(31, 46, 118);
/* oklch */ color: oklch(33.7% 0.124 269.5);
Tailwind
colors: {
  custom: {
    50: '#68669e',
    500: '#1f2e76',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e76;
$custom-light: #68669e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e76",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 118
  },
  "hsl": {
    "h": 229.655,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33665,
    "c": 0.12437,
    "h": 269.5
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#1F2E76
secondary
#AA9947
accent
#C746E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F2E76

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

Preview Lab → · Contrast checker → · Palette generator →

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