#242AB1#242AB1

#242AB1 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.3% C 0.206 H 270.2°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#242AB1
RGBrgb(36, 42, 177)
HSLhsl(237, 66%, 42%)
HSVhsv(237, 80%, 69%)
CMYKcmyk(79.7%, 76.3%, 0%, 30.6%)
CIE-LABlab(27.31, 45.27, -71.02)
CIE-LCHlch(27.31, 84.22, 302.51°)
OKLaboklab(39.25% 0.0008 -0.2057)
OKLCHoklch(39.25% 0.206 270.2)
XYZxyz(9.4886, 5.2042, 42.0909)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242AB1 #B1AB24
analogous
#2471B1 #242AB1 #6524B1
triadic
#242AB1 #B1242A #2AB124
tetradic
#242AB1 #B12471 #B1AB24 #24B165
square
#242AB1 #B12471 #B1AB24 #24B165
split-complementary
#242AB1 #B16524 #71B124
monochromatic
#0F124B #1A1E7E #242AB1 #3B42D7 #6E73E1

Accessibility & contrast

On white

10.29
#242AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#242AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242AB1
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242AB1#FFFFFF#000000##FFFFFF
##242AB11.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B5
Deuteranopia (green-blind)
#0039AF
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #242ab1;
/* rgb */ color: rgb(36, 42, 177);
/* oklch */ color: oklch(39.3% 0.206 270.2);
Tailwind
colors: {
  custom: {
    50: '#7965ca',
    500: '#242ab1',
    950: '#000000',
  },
}
SCSS
$custom: #242ab1;
$custom-light: #7965ca;
$custom-dark: #000000;
JSON
{
  "hex": "#242ab1",
  "rgb": {
    "r": 36,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 237.447,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39253,
    "c": 0.20571,
    "h": 270.2
  },
  "luminance": 0.05205
}

Semantic roles & 50–950 ramp

primary
#242AB1
secondary
#C8C469
accent
#E23FE9
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #242AB1

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

Preview Lab → · Contrast checker → · Palette generator →

#242AB1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva