#1F2C8B#1F2C8B

#1F2C8B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.3% C 0.157 H 269.9°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#1F2C8B
RGBrgb(31, 44, 139)
HSLhsl(233, 64%, 33%)
HSVhsv(233, 78%, 55%)
CMYKcmyk(77.7%, 68.3%, 0%, 45.5%)
CIE-LABlab(23.53, 30.08, -54.09)
CIE-LCHlch(23.53, 61.90, 299.08°)
OKLaboklab(35.28% -0.0003 -0.1565)
OKLCHoklch(35.28% 0.157 269.9)
XYZxyz(6.1244, 3.9561, 24.8619)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C8B #8B7E1F
analogous
#1F628B #1F2C8B #481F8B
triadic
#1F2C8B #8B1F2C #2C8B1F
tetradic
#1F2C8B #8B1F62 #8B7E1F #1F8B48
square
#1F2C8B #8B1F62 #8B7E1F #1F8B48
split-complementary
#1F2C8B #8B481F #628B1F
monochromatic
#090C27 #141C59 #1F2C8B #2A3CBD #4D5ED7

Accessibility & contrast

On white

11.72
#1F2C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C8B
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C8B#FFFFFF#000000##FFFFFF
##1F2C8B1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2c8b;
/* rgb */ color: rgb(31, 44, 139);
/* oklch */ color: oklch(35.3% 0.157 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d65ae',
    500: '#1f2c8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c8b;
$custom-light: #6d65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c8b",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 232.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35283,
    "c": 0.15652,
    "h": 269.9
  },
  "luminance": 0.03957
}

Semantic roles & 50–950 ramp

primary
#1F2C8B
secondary
#BAAD4C
accent
#D341E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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