#1F1BB3#1F1BB3

#1F1BB3 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.5% C 0.221 H 269.7°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#1F1BB3
RGBrgb(31, 27, 179)
HSLhsl(242, 74%, 40%)
HSVhsv(242, 85%, 70%)
CMYKcmyk(82.7%, 84.9%, 0%, 29.8%)
CIE-LABlab(24.73, 53.10, -76.51)
CIE-LCHlch(24.73, 93.13, 304.76°)
OKLaboklab(37.45% -0.0013 -0.2214)
OKLCHoklch(37.45% 0.221 269.7)
XYZxyz(9.0909, 4.3288, 42.9955)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1BB3 #AFB31B
analogous
#1B63B3 #1F1BB3 #6B1BB3
triadic
#1F1BB3 #B31F1B #1BB31F
tetradic
#1F1BB3 #B31B63 #AFB31B #1BB36B
square
#1F1BB3 #B31B63 #AFB31B #1BB36B
split-complementary
#1F1BB3 #B36B1B #63B31B
monochromatic
#0D0B49 #16137E #1F1BB3 #312CDF #6561E7

Accessibility & contrast

On white

11.25
#1F1BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F1BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1BB3
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1BB3#FFFFFF#000000##FFFFFF
##1F1BB31.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0033B1
Tritanopia (blue-blind)
#004E6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f1bb3;
/* rgb */ color: rgb(31, 27, 179);
/* oklch */ color: oklch(37.5% 0.221 269.7);
Tailwind
colors: {
  custom: {
    50: '#795dcb',
    500: '#1f1bb3',
    950: '#000000',
  },
}
SCSS
$custom: #1f1bb3;
$custom-light: #795dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1bb3",
  "rgb": {
    "r": 31,
    "g": 27,
    "b": 179
  },
  "hsl": {
    "h": 241.579,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.37453,
    "c": 0.22141,
    "h": 269.7
  },
  "luminance": 0.0433
}

Semantic roles & 50–950 ramp

primary
#1F1BB3
secondary
#C9CC5E
accent
#F037EC
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #1F1BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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