#242F89#242F89

#242F89 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.149 H 271.2°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#242F89
RGBrgb(36, 47, 137)
HSLhsl(233, 58%, 34%)
HSVhsv(233, 74%, 54%)
CMYKcmyk(73.7%, 65.7%, 0%, 46.3%)
CIE-LABlab(24.37, 27.91, -51.46)
CIE-LCHlch(24.37, 58.54, 298.47°)
OKLaboklab(35.91% 0.0032 -0.1487)
OKLCHoklch(35.91% 0.149 271.2)
XYZxyz(6.2579, 4.2136, 24.1456)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F89 #897E24
analogous
#246289 #242F89 #4C2489
triadic
#242F89 #89242F #2F8924
tetradic
#242F89 #892462 #897E24 #24894C
square
#242F89 #892462 #897E24 #24894C
split-complementary
#242F89 #894C24 #628924
monochromatic
#0B0E28 #171E59 #242F89 #3140B9 #5563D2

Accessibility & contrast

On white

11.40
#242F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#242F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F89
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F89#FFFFFF#000000##FFFFFF
##242F891.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#003587
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #242f89;
/* rgb */ color: rgb(36, 47, 137);
/* oklch */ color: oklch(35.9% 0.149 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e67ac',
    500: '#242f89',
    950: '#000000',
  },
}
SCSS
$custom: #242f89;
$custom-light: #6e67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#242f89",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 233.465,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35913,
    "c": 0.14871,
    "h": 271.2
  },
  "luminance": 0.04214
}

Semantic roles & 50–950 ramp

primary
#242F89
secondary
#B7AC52
accent
#D146E2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #242F89

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

Preview Lab → · Contrast checker → · Palette generator →

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